[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] set -u in an arithmetic context
From: |
Eric Blake |
Subject: |
Re: [Help-bash] set -u in an arithmetic context |
Date: |
Thu, 26 Apr 2012 11:20:28 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
On 04/26/2012 11:01 AM, Eric Blake wrote:
> On 04/26/2012 10:14 AM, Bill Gradwohl wrote:
>> Finding out that -u doesn't work unless the variable is referenced with $
>> or ${} is a disappointment.
>
> Especially since 'set -u' _does_ affect arithmetic expansion (although I
> couldn't quickly find such a requirement in POSIX, so we may have a hole
> in the standard):
I filed this request for interpretation:
http://austingroupbugs.net/view.php?id=559
But be aware that while POSIX specified $(()), the use of (()) is an
extension, so it does not have to behave the same.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature