or download this
The status returned by the last pipe close, backtick
(``) command, or system() operator. Note that this
...
8), and $? & 255 gives which signal, if any, the
process died from, and whether there was a core
dump. (Mnemonic: similar to sh and ksh.)