Zet - What do set -e and set -x do?

What do set -e and set -x do?

Running help set will give you a clue to the options.

  • -e exits when any command exists something other than a zero status
  • -x prints commands and their arguments as they are executed. Handy for debugging.

#bash