3 ms·
> Using set -e ensures that your script exits immediately if any command fails, preventing cascading errors. There's a huge asterisk around using -e https://w
by upon_drumhead 2y ago
> Using set -e ensures that your script exits immediately if any command fails, preventing cascading errors.
There's a huge asterisk around using -e
https://www.in-ulm.de/~mascheck/various/set-e/ https://www.in-ulm.de/~mascheck/various/set-e/ contains a matrix of the different shells (and versions) and how they handle different conditional orders with -e
- ttyprintk 2y agoI would add `shift` and `command shift` to that matrix.