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 <[EMAIL PROTECTED]> 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 Gary V. Vaughan
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Alexandre Oliva
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Alexandre Oliva
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- RE: autoconf 2.49c fails if '.' is in PATH Tim Van Holder
- Re: autoconf 2.49c fails if '.' is in PATH Alexandre Oliva
- RE: autoconf 2.49c fails if '.' is in PATH Bernard Dautrevaux
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Richard Dawe
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Earnie Boyd
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- RE: autoconf 2.49c fails if '.' is in PATH Bernard Dautrevaux
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Alexandre Oliva
- RE: autoconf 2.49c fails if '.' is in PATH Tim Van Holder
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille
- Re: autoconf 2.49c fails if '.' is in PATH Earnie Boyd
- Re: autoconf 2.49c fails if '.' is in PATH Akim Demaille