Mail Archives: djgpp-workers/2003/01/09/11:39:05
Hello.
Tim Van Holder wrote:
[snip]
> Ho hum - I was talking in the context of a path search (I highly doubt
> running 'test -x' will _ever_ do a path search by itself; 'test -x rm'
> won't return true unless you're in /bin or /usr/bin or whatever).
>
> In the case of using
>
> test -x /usr/local/bin/m4
>
> however, test -x WILL return true if /usr/local/bin/m4 refers to a
> directory (that the current user can cd into). You'd need 'test -f foo
> && test -x foo' for a more foolproof test.
>
> And that is what happened in autoconf's AC_PROG_PATH if 'test -x' was
> used as executable test instead of 'test -f'
Ah, thanks for clarifying. My conversions of 'test -f' to 'test -x' in the
autoconf 2.57 test suite (in the DJGPP port) should be fine, then. (But I am
planning to go back and convert it to use 'test -f' and $EXEEXT sometime.)
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -