Xref: utzoo comp.unix.shell:2073 comp.bugs.sys5:1527 comp.bugs.4bsd:1800 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsh!cbnewse!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.unix.shell,comp.bugs.sys5,comp.bugs.4bsd Subject: sh -e not halted by "test" returning 1 [false] Message-ID: Date: 29 Apr 91 15:27:30 GMT Sender: news@cbnewse.att.com (NetNews Administrator) Reply-To: Dan_Jacobson@ihlpz.ATT.COM Organization: AT&T-BL, Naperville IL, USA Lines: 10 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.