Bash-set-options

From I Will Fear No Evil
Revision as of 16:22, 15 October 2021 by Chubbard (talk | contribs) (Created page with "# set -o nounset # Treat unset variables as an error # set -o pipefail # Any non-zero exits in pipes fail # set -e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. set -o nounset # Treat unset variables as an error
  2. set -o pipefail # Any non-zero exits in pipes fail
  3. set -e # Any non-zero exit is a failure