Skip to content

Commit

Permalink
primitive: strict_mode: Eliminate multiple calls to set
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed May 4, 2018
1 parent fdef02c commit e70ba86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source Code/Shell Script(GNU Bash)(primitive).template.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

## Makes debuggers' life easier - Unofficial Bash Strict Mode
## BASHDOC: Shell Builtin Commands - Modifying Shell Behavior - The Set Builtin
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
set \
-o errexit \
-o errtrace \
-o nounset \
-o pipefail

## Runtime Dependencies Checking
declare\
Expand Down

0 comments on commit e70ba86

Please sign in to comment.