I ran this on ubuntu and I got 258 for the exit status. Ialso tried this with UWIN and also got 258.
On Sat, Jan 10, 2015 at 6:10 PM, Terrence J. Doyle < [email protected]> wrote: > > The ksh(1) man page states: > > Commands. > A simple-command is... . The value of a simple-command is its > exit status; 0-255 if it terminates normally; 256+signum > if it terminates abnormally... . > > However, when I do the following: > > $ read > ^C > $ echo $? > 2 > $ > > I see that the exit status is simply signum, not 256+signum. The same > goes for the other signals I've tried: SIGHUP, SIGQUIT, SIGTERM and > SIGKILL. Is this a bug? Or, does the documentation need to be changed? > > Terrence Doyle > _______________________________________________ > ast-users mailing list > [email protected] > http://lists.research.att.com/mailman/listinfo/ast-users >
_______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
