Hacker News new | ask | show | jobs
by ctrlrsf 3379 days ago
I use the long form so others reading script that may not be familiar with set options gets a hint of what's going on.

At the top of each file with a brief comment I add:

  set -o errexit
  set -o nounset
  set -o pipefail