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

Tianyi Cui picture Tianyi Cui · Aug 19, 2010 · Viewed 55.7k times · Source

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?

Answer

zwol picture zwol · Aug 19, 2010

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