bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is this a bug?


From: Chet Ramey
Subject: Re: is this a bug?
Date: Wed, 14 Nov 2007 16:06:38 -0500

> > It's not a bug. the exit status of a command, the "return" of your
> > function, is limited to the numbers 0-255.
> 
> It's 0-128, actually.

Whoops, no, you're right.  You just can't count on exit statuses
greater than 127 not conflicting with processes exiting due to a
signal, so practice is to limit exit statuses to 0-127. 

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]