4 ms·
Actual caveat is that the -e does not work in if statements. Compare: +$ cat x #!/bin/sh set -eu foo() { echo 1 false
by gray_-_wolf 6y ago
Actual caveat is that the -e does not work in if statements. Compare:
+$ cat x
#!/bin/sh
set -eu
foo() {
echo 1
false
echo 2
}
foo
+$ ./x
1
+$ cat x
#!/bin/sh
set -eu
foo() {
echo 1
false
echo 2
}
foo ||:
+$ ./x
1
2