[Top][All Lists]

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

Re: bug: return doesn't accept negative numbers

From: Mike Frysinger
Subject: Re: bug: return doesn't accept negative numbers
Date: Mon, 8 Aug 2011 21:42:05 -0400
User-agent: KMail/1.13.7 (Linux/2.6.39; KDE/4.6.3; x86_64; ; )

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.

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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