美文网首页
set -e 、set +e

set -e 、set +e

作者: emm_simon | 来源:发表于2020-05-11 11:51 被阅读0次
set -e

执行的时候如果出现了返回值为非零,整个脚本 就会立即退出

set +e

执行的时候如果出现了返回值为非零将会继续执行下面的脚本

相关文章

网友评论

      本文标题:set -e 、set +e

      本文链接:https://www.haomeiwen.com/subject/ndxunhtx.html