One can customarily get the exit status after running commands from a bash terminal session. Are there any standardised errors that use specific exit status values. I am also looking for unix programs that can output a range of exit status values together with the corresponding list of error descriptions associated with each value.
Asked
Active
Viewed 13 times
0
-
If you write your own programs, I would avoid exit code 127, as this is commonly used to indicate that a program has not been found. For reporting some error condition, I think you can freely use codes from 1 to 126, without risking too much confusion. – user1934428 Dec 02 '21 at 10:16