bug-bash
[Top][All Lists]
Advanced

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

Re: bash-4.0 regression: negative return values


From: Mike Frysinger
Subject: Re: bash-4.0 regression: negative return values
Date: Mon, 23 Feb 2009 09:40:40 -0500
User-agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )

On Monday 23 February 2009 07:50:30 Eric Blake wrote:
> According to Mike Frysinger on 2/22/2009 10:03 PM:
> > previous versions of bash would happily accept negative values ( treated
> > as a signed integer and masked with like 0xff), but it seems some changes
> > related to option parsing has broken that
> >
> > $ f(){ return -1; }; f
> > -bash: return: -1: invalid option
> > return: usage: return [n]
>
> What about 'return -- -1'?

that does indeed work.  thanks for pointing out the obvious which i missed ;).
-mike

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


reply via email to

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