sh -e not halted by "test" returning 1 [false]

Dan_Jacobson at ATT.COM Dan_Jacobson at ATT.COM
Tue Apr 30 01:27:30 AEST 1991


I've seen this problem with sh on Sun and SYS V.  ksh doesn't have the
problem.

echo Begin nuclear power plant shutdown check
set -xe
test 3 -eq 32
echo \$-=$- \$0=$0 \$?=$? I shouldnt be still running after \"test 3 -eq 32\"

non built-in commands, and the "false" command, when they return
non-0, will stop sh, though.



More information about the Comp.bugs.4bsd.ucb-fixes mailing list