diff options
author | Kate Ward <kate.ward@forestent.com> | 2020-04-11 14:06:34 +0200 |
---|---|---|
committer | Kate Ward <kate.ward@forestent.com> | 2020-04-11 14:06:34 +0200 |
commit | 1962cd8cea3fe6811373b289fb374fd41fc1277e (patch) | |
tree | 1f9f63544f7f4f091c011ae48dd46b97dd35df35 | |
parent | 73cecf4a76466cad6a16a574562ed465a4e2978e (diff) | |
download | shflags-1962cd8cea3fe6811373b289fb374fd41fc1277e.tar.gz |
Enabled "set -e" by default.
-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. |