ash's handling of foo.exe and Foo (Re: Cygwin 1.1.8 Python 2.1a2 Builds OOTB)

Earnie Boyd earnie_boyd@yahoo.com
Tue Feb 20 10:25:00 GMT 2001


Jason Tishler wrote:
> 
> On Mon, Feb 20, 2001 at 10:57:53AM -0500, Jason Tishler wrote:
> > On Mon, Feb 05, 2001 at 12:44:09PM -0500, Jason Tishler wrote:
> > > Python 2.1a2 builds OOTB under Cygwin 1.1.8 or later.
> >
> > There is one nit that I just noticed -- make install will fail during
> > the $(srcdir)/Lib/$(PLATDIR) target.  The simple workaround is to execute
> > make install as follows:
> >
> >     make EXE=.exe install
> >
> > I will submit a patch to Python to correct the above problem which can be
> > traced to the Makefile is now using EXEEXT while the regen shell script is
> > still using EXE.  But, this could also be classified as an ash "issue" so
> > see my next post, if interested.
> 
> Although, this could be corrected in ash too.  It seems like ash won't
> execute foo.exe when there also exists a directory called Foo at the
> same level:
> 
>     $ sh
>     $ ls -dl [Pp]ython*
>     drwxr-xr-x   3 jt       Domain U    24576 Feb 19 16:12 Python
>     -rwxr-xr-x   1 jt       Domain U    34903 Feb 19 16:13 python.exe
>     $ python
>     python: not found
>     $ python.exe
>     Python 2.1a2 (#1, Feb 19 2001, 16:13:17)
>     ...
> 
> But, the above problem does not occur in bash:
> 
>     $ bash
>     $ ls -dl [Pp]ython*
>     drwxr-xr-x   3 jt       Domain U    24576 Feb 19 16:12 Python
>     -rwxr-xr-x   1 jt       Domain U    34903 Feb 19 16:13 python.exe
>     $ python
>     Python 2.1a2 (#1, Feb 19 2001, 16:13:17)
>     ...
> 

Hmm...  Interesting.  The autoconf maintainers have been having a nice
go with this too.  Bashes builtin `test' command will find the directory
python first.  Such that `test -x python && test -f python' will return
false.  Having a directory and an executable of the same name will break
autoconf in finding the executable.  The suggested workaround is "don't
do that".

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the Cygwin-apps mailing list