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: Eric Blake
Subject: Re: bash-4.0 regression: negative return values
Date: Mon, 23 Feb 2009 05:50:30 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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'?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmim5YACgkQ84KuGfSFAYAvigCgvi0lCTHJBAhcYNBZKgf+zNUK
N1wAoKKjgPxFLF7bPCvKY58klIkMnYA2
=Q93f
-----END PGP SIGNATURE-----




reply via email to

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