set -o errexit # exit if a command exits with non-zero status
set -o nounset # exit if an expanded variable does not exist
set -o xtrace  # like verbose mode -v, but expands commands
set -o noglob  # filename globbing `set -f`

# using "$@" in connection with the flag u, without any arguments, errors out
# with "@: parameter not set"
# set x; shift; set -u; echo "$@"
# (this applies to all forms of $@ and $*)
