Y
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
vog
3841 days ago
I usually shorten this to:
set -eu -o pipefail
link
michaelhoffman
3841 days ago
I used to do that but the long versions are more understandable by other people who will look at the script.
link