bug-bash
[Top][All Lists]
Advanced

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

Re: Regression with declare -i and arrays


From: Chet Ramey
Subject: Re: Regression with declare -i and arrays
Date: Mon, 06 Apr 2015 22:32:30 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 4/3/15 8:40 PM, Eduardo A. Bustamante López wrote:
> Hello Chet,
> 
> You introduced a regression:
> 
> [dualbus@ma.sdf.org /tmp/tmp.ps6HXrLSZX/devel-]$ ./bash -c 'typeset -i x; 
> x=([0]=1+1); echo "$x"'
> 1+1
> 
> vs
> 
> dualbus@yaqui ~ % bash -c 'typeset -i x; x=([0]=1+1); echo "$x"' 
> 2

Thanks, it's an easy fix.

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/



reply via email to

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