From: "Andreas Eibach" <a.eibach@gmx.net>
To: <cygwin@cygwin.com>
Subject: Re: Using external tools KILLS permissions of ASCII files
Date: Mon, 03 Sep 2001 17:08:00 -0000 [thread overview]
Message-ID: <001001c134d7$0ab2fd80$341207d5@andreas> (raw)
In-Reply-To: <20010904010029.A4947@cygbert.vinschen.de>
----- Original Message -----
From: "Corinna Vinschen" <cygwin@cygwin.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, September 04, 2001 1:00 AM
Subject: Re: Using external tools KILLS permissions of ASCII files
> On Tue, Sep 04, 2001 at 12:52:11AM +0200, Andreas Eibach wrote:
> > I wrote:
> > > The only way out seems to be sticking to Cygwin tools _only_ for
editing,
> > > even 'vi' if you insist.
> > > But that's would be a bad compromise...
> >
> > A little add-on to this: I just checked a -rwxr-x-r-x file, edited it
> > with
> > vi, and modified it a bit. After saving the file the original
permissions
> > were gone and the file was at -rw-r--r--.
> > How can I change this (or restore the original permissions) at least a
> > _little_ on W9x? Really no way to just _keep_ the original permissions
of a
> > file?
> > *Sigh*
>
> The x-bit on 9x/ME is set _only_ by examining the beginning of the
> file. If it's containing e.g. #!/bin/perl or so, it's executable.
Thank you very very much, Corinna, you've just saved my life. :-)
Honestly, I didn't know this before...(that the shebang determines the
executable status in Cygwin)
Well yes, Dreamweaver 3 _must not_ auto-correct ANYTHING.
Now look at that!
[before]
#!/usr/bin/perl
<BODY text="#000000" bgcolor="#FFFFFF">
[afterwards]
<BODY text="#000000" bgcolor="#FFFFFF">#!/usr/bin/perl
This obviously _cannot_ work.
Fix: Tell Dreamweaver to NEVER rewrite CGI files:
Edit->Preferences->HTML Rewriting
Never Rewrite HTML: In Files with Extensions [...] .cgi [...]
OK.
That did it.
Many thanks again, Corinna. Glad I was able to track that down now with DW.
Andreas
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
next prev parent reply other threads:[~2001-09-03 17:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-03 15:42 Andreas Eibach
2001-09-03 16:00 ` Corinna Vinschen
2001-09-03 16:43 ` Corinna Vinschen
2001-09-03 17:08 ` Andreas Eibach [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-03 14:34 Andreas Eibach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001001c134d7$0ab2fd80$341207d5@andreas' \
--to=a.eibach@gmx.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).