4 ms·
In my enterprise environment of legacy systems with 97% reliability, our scripts often run without -e and the effect is we deliver broken stuff constantly. But
by digitalsushi 3y ago
In my enterprise environment of legacy systems with 97% reliability, our scripts often run without -e and the effect is we deliver broken stuff constantly. But people get results. They get an email that says "an unknown error occurred". This can be superior to running some tiny shell script with -e and breaking that communication. It's kind of subjective to the experience.
- usr1106 3y agoOf course using set -e without an exit handler is contraproductive. We use an exit handler that reports "$0 has exited prematurely" in cases the script did not reach expected exit points.