1 2 3 4 5 6 7 8 9 10 11 12 13
| $ echo $BASH_VERSION
3.2.25(1)-release
$ echo $KSH_VERSION
@(#)PD KSH v5.2.14 99/07/13.2
$ man set
[snip]
-e Exit immediately if a simple command (see SHELL GRAMMAR above)
exits with a non-zero status. The shell does not exit if the
command that fails is part of the command list immediately fol-
lowing a while or until keyword, part of the test in an if
statement, part of a && or || list, or if the commands return
value is being inverted via !. A trap on ERR, if set, is exe-
cuted before the shell exits. |