Re:TTY-Exit: terminal exit codes for humans and machines
by pmurach on Sunday February 02, 2020 @05:33AM
(#22216274)
In this context "Do not use them.", these are reserved codes and shouldn't be redefined in your programs to mean something entirely different. So codes in range 64-78 are a standard across Unix systems. Usually, specific program codes are best served using codes below 64.
I have included a method that helps you check if a code is reserved or not. For example, TTY::Exit.exit_reserved?(126) will return true as this is a status used by Bash to indicate a problem with executing a command.
"A few programs exit with the following non-portable error codes. Do not use them."
[1] https://man.openbsd.org/sysexits