Paul Jarc wrote: > Chet Ramey <[EMAIL PROTECTED]> wrote: >> Hardcoding `/bin/test' is a tricky business: > > How about "(exec test ...)"? Or "env test ..."?
Yeah, I considered the first variant. Something like (exec test -r /dev/fd/3 3</dev/null) would be close to what I want for the test I was looking at. It doesn't protect you from pathological strict-Posix systems that have /bin/test as: #! /bin/sh # or /bin/bash test "$@" (like, say, Solaris) but the number of systems with such a test implementation and bash as /bin/sh and no /dev/stdin is probably small enough to defer the complication of a C program. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash