X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 2 Feb 2010 11:11:05 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [bulk] - Re: Bash completion and symlinks problem
Message-ID: <20100202101105.GK28659@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <8CCC8F85C5F2784387A32FAD835FB4E602DA8EE60B@server03>  <20100201151825.GJ28659@calimero.vinschen.de>  <8CCC8F85C5F2784387A32FAD835FB4E602DA8EE60E@server03>  <1ef5a52f1002020118g192e71fftead422643991da23@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1ef5a52f1002020118g192e71fftead422643991da23@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Feb  2 10:18, Csaba Raduly wrote:
> On Mon, Feb 1, 2010 at 4:53 PM, DEWI - N. Zacharias <> wrote:
> >
> (snip)
> > ls yields
> >
> > $ ls -al dosomething.pl
> > -rw-r--r-- 1 n-zacharias Kein 94 2010-02-01 16:42 dosomething.pl
> >
> > Even if I use chmod 777 dosomething.pl  there is no change in -rw-r--r--
> >
> > Which seems to be no problem because it executes anyway.
> (snip)
> > Only the completion did not work or better the completion for execution.
> 
> Files without execute permission will not be offered for completion as
> the executable.

Not quite.  On filesystems which don't maintain permissions or if noacl
is set for the underlying mount, stat() opens the file and the first two
bytes are read.  If the file starts with a magic cookie, one of them
"#!", the file gets the executable bits set.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

