greycat 1282146799 learn "set -e" attempts to tell bash to abort the script if any command returns non-zero. But it fails. Badly. Subtly. Insidiously. Don't use it. Please. Just don't. lhunath 1289251622 forget lhunath 1289251630 learn [citation needed] lhunath 1289251633 forget lhunath 1289251671 learn "set -e" tells bash to abort the execution of the script when an "unchecked" command fails (has a non-zero exit code). lhunath 1289252029 forget lhunath 1289252279 learn "set -e" tells bash to abort the execution of the script when an unchecked command fails. A command is checked when it is in an if, while, until, &&, || or ! check. TheBonsai 1292464037 forget TheBonsai 1292464061 learn "set -e" tells bash to abort the execution of the script when an unchecked command fails. A command is checked when it is in an if, while, until, &&, || or ! check. Also see !faq 105 geirha 1416501032 forget geirha 1416501034 learn "set -e" tells bash to abort the execution of the script when an unchecked command fails. A command is checked when it is in an if, while, until, &&, || or ! check. Also see http://mywiki.wooledge.org/BashFAQ/105 kurahaupo1 1467563374 forget kurahaupo1 1467563402 learn "set -e" is an inheritance of the old bourne shell, and doesn't really work well with modern shell features. You'll really have less buggy scripts if you do the error handling manually instead of relying on the unreliable "set -e"; see http://mywiki.wooledge.org/BashFAQ/105