$ test -d /tmp/ ; echo $?
   test: not found
   127
   
   I think I see what's happening now.  The PATH is being emptied, and
   `test' therefore isn't found.  It is located in /bin/ on that machine,
   and isn't built into the shell.  Could that be the problem?

Sure.  Is `[' built in?  If not, then one should use /bin/test or
/usr/bin/test.  On my Debian system, it's the latter.

Reply via email to