In linux (in particular, I have Ubuntu 14), if any program completes the error, can I get a numerical error code using the $? variable $?
$ ./failing_app $ echo $?
However, the number itself does not tell me how to get the name and description of the error?
$ man errno has a list of errors, but it only gives names, not numeric values.
I searched google and the results are rather strange: for example. I have a Rust toy in which I am trying to access an array element outside the bounds. Panic program and $? is equal to 101 , however, as they say, it corresponds to the Network unreachable error, which makes no sense.
source share