I was thrown off guard today by
Program exited with code 0146.
gdb prints the return code in octal; looking into why I found:
But that's not a particularly satisfying answer. Some quick googling did not reveal the history, so I was hoping someone on SO might know the back story.
A somewhat related question, how would one even view the return code in octal? Perhaps older machines always printed the return code?
$ printf %o\\n $?
Is pretty awkward :)