Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Fri, 29 Sep 2000 16:35:16 -0400
To: cygwin@sources.redhat.com
Subject: Re: bug in /bin/sh.exe (ash-20000823)
Message-ID: <20000929163515.A19235@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <200009292010.WAA14437@noisetier.inrialpes.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <200009292010.WAA14437@noisetier.inrialpes.fr>; from Hubert.Garavel@inrialpes.fr on Fri, Sep 29, 2000 at 10:10:24PM +0200

On Fri, Sep 29, 2000 at 10:10:24PM +0200, Hubert Garavel wrote:
>
>Synopsis:
>---------
>
>        /bin/sh.exe fails to execute a binary program
>        that has no ".exe" extension, if the pathname
>        used to invoke his executable program contains
>        at least one slash.
>
>Comments:
>---------
>
>	This bug was observed both on Windows NT4 and 
>	Windows 2000 Professional.
>
>	This bug also occured with the previous version
>	of /bin/sh.exe
>
>        This bug does NOT occur with /bin/bash.exe
>
>How to reproduce the bug
>------------------------
>
>Open a Cygwin window and type 
>	/bin/sh
>to switch from bash to sh.
>
>Then, type
>
>cd /tmp
>
># part 1 of the test : files without any extension
>
>cp /bin/echo.exe mytest
>mytest 
>#	--> is OK if you have . in $PATH
>./mytest
>#	--> not OK : ./mytest: not found
>/tmp/mytest
>#	--> not OK : /tmp/mytest: not found

I can't explain the no path scenario but the basic problem is that
mytest doesn't have the executable bit set.  This is implied if you have
a .exe extension.  Otherwise it is off unless you're using CYGWIN=ntsec,
are running on an NTFS, and have done a 'chmod a+x mytest'.

cgf	

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

