Kai> Ok.  Another alternative would be to use `/usr/bin/test -e FILE;
    Kai> echo $?'.  But that doesn't work, because FreeBSD has /bin/test
    Kai> rather than /usr/bin/test.  And Linux has /usr/bin/test rather than
    Kai> /bin/test.  Solaris has both.  And of course I cannot find out
    Kai> which `test' binary to use until I can find out whether a file
    Kai> exists, and that I can't do without a working `test' binary.

There's always

    (/bin/test -e FILE || /usr/bin/test -e FILE) 2>/dev/null ; echo $?

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/

Reply via email to