On 1/26/06, Robert Persson <[EMAIL PROTECTED]> wrote: > Someone was kind enough to send me a script that calls /usr/bin/test. When the > script didn't work I realised that test was behaving strangely. Basically it > doesn't seem to return anything.
test doesn't output anything...it indicates success/failure with the exit code. Try the following test.sh script: #!/bin/bash /usr/bin/test "$@" rc=$? if test "$rc" -eq 0; then echo "'test $@' was successful" else echo "'test $@' failed with code $rc" fi As others have said though, watch out for the 'test' command built-in to many shells, as the behavior there is defined by the shell. Generally though, /usr/bin/test and bash test should work the same.... -Richard -- gentoo-user@gentoo.org mailing list