shopts
set ...
-e errexit Abort script at first error, when a command exits with non-zero status (except in until or while loops, if-tests, list constructs)
-o Option-Name (none) Invoke the Option-Name option -u nounset Attempt to use undefined variable outputs error message, and forces an exit -v verbose Print each command to stdout before executing it -x xtrace Similar to -v, but expands commands -C noclobber Prevent overwriting of files by redirection (may be overridden by >|)