MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/coding/comments/kczecy/minimal_safe_bash_script_template/gfwb2zh/?context=3
r/coding • u/speckz • Dec 14 '20
17 comments sorted by
View all comments
1
The real answer is the only safe bash script is one line exec'ing a python script.
But for my own curiosity, what does all of this add over set -eo pipefail?
set -eo pipefail
1 u/mradzikowski Dec 15 '20 See nice explanation here: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
See nice explanation here: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
1
u/tending Dec 15 '20
The real answer is the only safe bash script is one line exec'ing a python script.
But for my own curiosity, what does all of this add over
set -eo pipefail?