[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: |
Tue, 09 Aug 2011 11:20:38 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 |
On 8/9/11 8:53 AM, Eric Blake wrote:
> On 08/08/2011 08:14 PM, Chet Ramey wrote:
>> On 8/8/11 9:42 PM, Mike Frysinger wrote:
>>> On Monday, August 08, 2011 21:20:29 Chet Ramey wrote:
>>>> 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.
>>>
>>> i posted a patch for this quite a while ago. not that it's hard to code.
>>
>> Sure. It's just removing the three lines of code that were added
>> between bash-3.2 and bash-4.0. The question was always whether that's
>> the right thing to do, and whether the result will behave as Posix
>> requires.
>
> Yes, the result will behave as POSIX requires.
That's not exactly what I meant. I know what Posix says. The question is
whether or not the code does that, and that's what I have to verify. The
change went in (three years ago) to solve a specific issue, so I have to
make sure we're not going backwards here.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: bug: return doesn't accept negative numbers, (continued)
- Re: bug: return doesn't accept negative numbers, Linda Walsh, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Jon Seymour, 2011/08/11
- Re: bug: return doesn't accept negative numbers, Chet Ramey, 2011/08/07
- Re: bug: return doesn't accept negative numbers, Eric Blake, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Linda Walsh, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Chet Ramey, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Mike Frysinger, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Chet Ramey, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Linda Walsh, 2011/08/08
- Re: bug: return doesn't accept negative numbers, Eric Blake, 2011/08/09
- Re: bug: return doesn't accept negative numbers,
Chet Ramey <=
- Message not available
- Re: bug: return doesn't accept negative numbers, Stephane CHAZELAS, 2011/08/11
- Re: bug: return doesn't accept negative numbers, Linda Walsh, 2011/08/11
Re: bug: return doesn't accept negative numbers, Dennis Williamson, 2011/08/05