I use "set -Eeuo pipefail" in pretty much all bash scripts.
(and often -x as well)
Makes things much saner.
This post is a better introduction than the submission: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_p...
Makes things much saner.
This post is a better introduction than the submission: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_p...
`set -Eeuxo pipefail` will be my new default.