[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf 2.49c fails if '.' is in PATH
From: |
Richard Dawe |
Subject: |
Re: autoconf 2.49c fails if '.' is in PATH |
Date: |
Fri, 02 Feb 2001 11:54:49 +0000 |
Hello.
Akim Demaille wrote:
> Still, `-f' is definitely better where we can use it. The question
> is, `is test -x my-dir positive on DOS environments'? If so, then on
> this arg the second `test' can be just `:'.
test -x path returns 0 (true) for executables and directories. I tested
with DJGPP port of bash 2.04's built-in test and the DJGPP port of
shellutils 1.12:
bash-2.04$ if [ -x c:/djgpp ]; then echo Yo; fi
Yo
bash-2.04$ $DJDIR/bin/test -f c:/djgpp/bin/ls.exe ; echo $?
0
bash-2.04$ $DJDIR/bin/test -x c:/djgpp/bin/ls.exe ; echo $?
0
bash-2.04$ $DJDIR/bin/test -x c:/djgpp/license ; echo $?
1
bash-2.04$ $DJDIR/bin/test -x c:/djgpp/bin/ls ; echo $?
0
bash-2.04$ if [ -x $DJDIR/bin/ls.exe ]; then echo Yay; fi
Yay
bash-2.04$ if [ -x $DJDIR/bin/ls ]; then echo Yay; fi
Yay
bash-2.04$ if [ -x $DJDIR/bin ]; then echo Yay; fi
Yay
Bye,
--
Richard Dawe <address@hidden> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Re: autoconf 2.49c fails if '.' is in PATH, (continued)
- Re: autoconf 2.49c fails if '.' is in PATH, Akim Demaille, 2001/02/02
- Re: autoconf 2.49c fails if '.' is in PATH, Akim Demaille, 2001/02/03
- Re: autoconf 2.49c fails if '.' is in PATH, Alexandre Oliva, 2001/02/03
- Re: autoconf 2.49c fails if '.' is in PATH, Akim Demaille, 2001/02/19
- Re: autoconf 2.49c fails if '.' is in PATH, Earnie Boyd, 2001/02/19
RE: autoconf 2.49c fails if '.' is in PATH, Tim Van Holder, 2001/02/04
Re: autoconf 2.49c fails if '.' is in PATH, Akim Demaille, 2001/02/02
- Re: autoconf 2.49c fails if '.' is in PATH,
Richard Dawe <=
RE: autoconf 2.49c fails if '.' is in PATH, Bernard Dautrevaux, 2001/02/02