Comment 35 for bug 557177

Revision history for this message
Bernd Zeimetz (bzed) wrote :

> Upstart runs all shell scripts with "set -e" by default.

So what if the script is *not* run by upstart, but by somebody trying to figure out why things work (or not)?
If you need to assume that a piece of shell code is executed with -e being set, add a set -e before that piece of code. Don't assume it will be called with sh -e...