3 ms·
Op here. Exactly this. I’ve seen many times where people had scripts and had to modify it (such as commenting code) when something has failed in the middle of t
by farslan 7y ago
Op here. Exactly this. I’ve seen many times where people had scripts and had to modify it (such as commenting code) when something has failed in the middle of the script.
- snissn 7y agoDon't forget about pipefail!! set -eu set -o pipefail Anything else I'm missing?
- khc 7y agonounset
- richardwhiuk 7y ago`set -x` can be very useful.
- jaytaylor 7y agoIIRC, `set -o nounset` is the bash equivalent for `set -u` in sh.