bug-bash
[Top][All Lists]
Advanced

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

Re: bug: return doesn't accept negative numbers


From: Chet Ramey
Subject: Re: bug: return doesn't accept negative numbers
Date: Mon, 08 Aug 2011 21:20:29 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11

On 8/8/11 8:53 AM, Eric Blake wrote:

> However, you are on to something - since bash allows 'exit -1' as an
> extension, it should similarly allow 'return -1' as the same sort of
> extension.  The fact that bash accepts 'exit -1' and 'exit -- -1', but only
> 'return -- -1', is the real point that you are complaining about.

That's a reasonable extension to consider for the next release of bash.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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