0
1
On OS X, Linux, and other systems, you can use $?
to get the exit code of the last command. Is there any way to exit codes of older commands? Either by saying "give me the exit code of the nth
previous command" or by saying "give me the exit code of the process with PID p
"?
you can append the exit codes yourself to a file after issuing commands – None – 2014-10-16T10:29:26.097