Timeline for Capture exit code of exit command
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 9, 2018 at 17:16 | comment | added | ilkkachu |
@DavidZ, in any case, exec'ing or just exit'ing will stop the script, which didn't seem like what the question wanted.
|
|
| Dec 9, 2018 at 15:45 | comment | added | David Z |
I guess you could do exec bash -c "exit 3", but at the moment I can't think of any reason to do that as opposed to just exit 3.
|
|
| Dec 9, 2018 at 10:50 | history | answered | ilkkachu | CC BY-SA 4.0 |