BashLinux
Why set -e doesn't catch a failure in foo | bar (and the other gaps)
set -euo pipefail is the right header, but it has holes - pipelines, conditions, && chains and local x=$(cmd). What each one misses and how to close it.
Blog · topic
Shell scripting that fails loudly: set -euo pipefail, quoting, traps and the gaps that bite.
1 postRSS feed
set -euo pipefail is the right header, but it has holes - pipelines, conditions, && chains and local x=$(cmd). What each one misses and how to close it.