←back to thread

217 points tanelpoder | 1 comments | | HN request time: 0.241s | source
Show context
scudd ◴[] No.26492906[source]
TIL: You can use `echo $?` to get the last process's exit code.
replies(2): >>26493051 #>>26493264 #
1. cmehdy ◴[] No.26493264[source]
A good summary of the most frequent things like that: https://stackoverflow.com/a/5163260

(Although they're sometimes tricky to use without more careful consideration.. like everything with bash and other shells really..)