Timeline for Capture exit code of exit command
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 16, 2018 at 1:22 | comment | added | wjandrea |
@icarus Oh, got it, OP is asking how to set $?
|
|
| Dec 10, 2018 at 18:32 | comment | added | icarus |
@Barmar every process has an exit code. Most of the people trying to answer the question are interpreting the question to mean "what can I replace the 'exit 3' with in the script so it sets the $? variable but doesn't exit this script"?
|
|
| Dec 10, 2018 at 5:09 | comment | added | Barmar | It still makes no sense to me. Why would there be an exit code if you don't actually exit? | |
| Dec 10, 2018 at 1:03 | comment | added | user287203 | @wjandrea is more a conceptual question than practical | |
| Dec 9, 2018 at 19:44 | history | edited | G-Man Says 'Reinstate Monica' | CC BY-SA 4.0 |
Tweaked wording; incorporated error message from OP's comment; added tag.
|
| Dec 9, 2018 at 18:25 | comment | added | wjandrea |
I don't understand the question. Why not set exit_code=3 and eliminate the exit 3 line altogether?
|
|
| Dec 9, 2018 at 17:07 | answer | added | Zombo | timeline score: 3 | |
| Dec 9, 2018 at 15:00 | history | tweeted | twitter.com/StackUnix/status/1071781630937845763 | ||
| Dec 9, 2018 at 12:54 | answer | added | icarus | timeline score: 10 | |
| Dec 9, 2018 at 10:50 | answer | added | ilkkachu | timeline score: 3 | |
| Dec 9, 2018 at 8:52 | vote | accept | CommunityBot | ||
| Dec 9, 2018 at 8:49 | answer | added | G-Man Says 'Reinstate Monica' | timeline score: 32 | |
| Dec 9, 2018 at 8:38 | answer | added | solarshado | timeline score: 12 | |
| Dec 9, 2018 at 8:35 | review | First posts | |||
| Dec 9, 2018 at 9:17 | |||||
| Dec 9, 2018 at 8:34 | comment | added | user287203 |
Yeah exec exit 3 is no bueno, I get "exec: exit: not found"
|
|
| Dec 9, 2018 at 8:33 | history | asked | user287203 | CC BY-SA 4.0 |