// EDIT: Request to move this question to unix.stackexchange.com
I was thrown off guard today by gdb:
Program exited with code 0146.
gdb prints the return code in octal; looking into why I found: http://comments.gmane.org/gmane.comp.gdb.devel/30363
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 :)