How to undo the effect of “set -e” which makes bash exit immediately if any command fails?

后端 未结 3 813
逝去的感伤
逝去的感伤 2021-01-30 01:12

After entering set -e in an interactive bash shell, bash will exit immediately if any command exits with non-zero. How can I undo this effect?

3条回答
  •  借酒劲吻你
    2021-01-30 01:42

    With set +e. Yeah, it's backward that you enable shell options with set - and disable them with set +. Historical raisins, donchanow.

提交回复
热议问题