set -e
-e Exit immediately if a simple command(seeSHELLGRAMMAR above) exits with a non-zero status.The
shell does not exit if the command that failsis
partof the command list immediately following a
while or until keyword, part of the test in an if
statement,partofa&& or ││ list, or if the
command’s return value is being invertedvia!.
AtraponERR,if set, is executed before the
shell exits.
页:
[1]