Bash-set-options: Difference between revisions

From I Will Fear No Evil
Jump to navigation Jump to search
(Created page with "# set -o nounset # Treat unset variables as an error # set -o pipefail # Any non-zero exits in pipes fail # set -e...")
 
(No difference)

Latest revision as of 16:22, 15 October 2021

  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