in reply to negative exit codes?
Unix is using an 8-bit value as exit/return code (see man wait). This value is typically interpreted as an unsigned value by the shell.
Update: but you could use Perl to display it properly :) For example
$ perl -e 'exit -111' $ perl -e "print unpack('c',pack 'C', $?),\$/" -111
(possible range -128 .. 127)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: negative exit codes?
by wscott44 (Initiate) on Jun 06, 2008 at 13:46 UTC |