Last active
October 7, 2016 14:38
-
-
Save cpaulbond/e1886f80f08c7c1bd55059d42373fcf7 to your computer and use it in GitHub Desktop.
Options that are sometimes useful in bash.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#> Options that are sometimes useful in bash. | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
trap "exit" SIGINT SIGTERM | |
trap "echo done" EXIT | |
declare NAME=Steve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment