|
|
|
|
|
by HellsMaddy
2175 days ago
|
|
A bash pitfall which I have experienced but didn’t see mentioned is the behavior of the `set -e` (errexit) option when using command substitution. If you expect failures within the command substitution to cause the script to exit, you’re gonna be confused. https://twitter.com/hellsmaddy/status/1273744824835796993?s=... Tl;dr use `shopt -s inherit_errexit` |
|