BOoRFGOnZ 发表于 2009-3-17 15:12:24

set -e

-e      Exit immediately if a simple command(seeSHELL
                      GRAMMAR 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]
查看完整版本: set -e