issues
search
ResearchSoftwareHour
/
rsh-notes
Notes and todo-items about our programs
9
stars
0
forks
source link
shell script hard mode: set -e
#28
Open
rkdarst
opened
4 years ago
rkdarst
commented
4 years ago
Discuss set -e and when it is good for shell scripts
If you expect a command to fail: command_that_can_fail || true
this
says
set -euo pipefail
is the strict mode.
Joke: "shell in hard mode", use
set -e
in an interactive shell
set -euo pipefail
is the strict mode.set -e
in an interactive shell