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

bashexit

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?

Best Answer

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