Hacker News new | ask | show | jobs
by michaelhoffman 3842 days ago
You can set all three of them in a single line. Set up your Bash template with this today:

    set -o nounset -o pipefail -o errexit
1 comments

I usually shorten this to:

    set -eu -o pipefail
I used to do that but the long versions are more understandable by other people who will look at the script.