Matthias Klose wrote:
> matthieu castet writes:
> 
>>Package: bash
>>Version: 3.0-14
>>Severity: normal
>>
>>Hi,
>>
>>Bash accept negative exit status, I don't now if it is normal (dash or
>>posh don't accept it.)
>>
>>But even if there are accepted, the return value is wrong :
>>$ bash -c "exit -1"; echo $?
>>255
>>
>>bash -c "exit -10"; echo $?
>>246
> 
> 
> I don't see anything, why this should be disallowed, the behaviour is
> the same as in zsh. The exit status is anded with 0377, see exit(3).

There's no bug here.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to