4 ms·
What are you talking about? Are you reading the same page as me? Let me quote http://fvue.nl/wiki/Bash:_Error_handling http://fvue.nl/wiki/Bash:_Error_handlin
by mietek 12y ago
What are you talking about? Are you reading the same page as me?
Let me quote http://fvue.nl/wiki/Bash:_Error_handling http://fvue.nl/wiki/Bash:_Error_handling Caveat 1:
#!/bin/bash -e
echo begin
(false)
echo end
Executing the script above gives:
$ ./caveat1.sh
begin
end
$
This has nothing to do with "ignoring the '-e' on the shebang line."
This is bash ignoring the exit status of the explicit subshell, even though `errexit` is set.