The command "set -e" in a bash script makes it such that any error quits
the shell.

So if you do:

set -e
cd mydir
rm -rf *

and "mydir" doesn't exist, the script will stop after "cd mydir".

I seem to remember an opinion within Sage that using "set -e" is bad but
never heard an argument for this.  I think "set -e" is a very useful
option.  I use it in most of my shell scripts, including the merger
scripts and the buildbot scripts.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to