Skip to main content

Timeline for exit shell script from a subshell

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Oct 12, 2016 at 17:49 comment added stuckj This is very similar to the original idea the user was posting about and said didn't work. I don't think this works for the subshell case. Your test using false exits after the "shell" case and never gets to the "subshell" test case. I believe it would fail for that case since the subshell would exit from the "exit 1" call but does not propagate the error to the outer shell.
Oct 2, 2014 at 23:36 history answered DocSalvager CC BY-SA 3.0