2 ms·
See https://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin https://www.gnu.org/software/bash/manual/bash.html#The-Set-B..., in short -e makes script
by Symbiote 5y ago
See https://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin https://www.gnu.org/software/bash/manual/bash.html#The-Set-B..., in short -e makes scripts exit if a command fails, and -u makes them exit if a variable is undefined.
If you think your colleagues won't know this, "set -o errexit; set -o nounset" would be easier for them to search on.
(Via "3.4 Shell Parameters" → "3.4.1 Positional Parameters" → "4 Shell Builtin Commands", or searching the whole page for "-e".)
- kop316 5y agoThank you very much, I appreciate it.