Re:Better bash in 15 minutes
by pmh on Wednesday April 16, 2014 @12:38AM
(#7596151)
I think "set -e" may be more idiomatic. While not scientific, there are more instances (by about an order of magnitude) of "set -e" than "set -o errexit" found via a code search on GitHub.
Anecdotally, I've nearly always seen "set -e" in bash scripts I've worked with over the years (if the option is there at all).
Anecdotally, I've nearly always seen "set -e" in bash scripts I've worked with over the years (if the option is there at all).