Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 4 Sep 2001 01:00:29 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Using external tools KILLS permissions of ASCII files Message-ID: <20010904010029.A4947@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <019e01c134cb$11d287e0$76c606d5 AT andreas> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <019e01c134cb$11d287e0$76c606d5@andreas>; from a.eibach@gmx.net on Tue, Sep 04, 2001 at 12:52:11AM +0200 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. Your native Windows tool seems to remove this #! stuff, unfortunately. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/