3 ms·
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
by michaelhoffman 11y 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
- vog 11y agoI usually shorten this to: set -eu -o pipefail
- michaelhoffman 11y agoI used to do that but the long versions are more understandable by other people who will look at the script.