diff options
-rw-r--r-- | shflags_test_helpers | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shflags_test_helpers b/shflags_test_helpers index 36f651f..d808d0f 100644 --- a/shflags_test_helpers +++ b/shflags_test_helpers @@ -20,7 +20,10 @@ # Disagree with [ p ] && [ q ] vs [ p -a -q ] recommendation. # shellcheck disable=SC2166 -# Treat unset variables as an error. +# Exit immediately if a simple command exits with a non-zero status. +set -e + +# Treat unset variables as an error when performing parameter expansion. set -u # Set shwordsplit for zsh. |