[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug adding K,V pairs to existing hash with HASH+=([K]=V)
From: |
Greg Wooledge |
Subject: |
Re: bug adding K,V pairs to existing hash with HASH+=([K]=V) |
Date: |
Tue, 16 Feb 2016 08:29:58 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Feb 15, 2016 at 11:30:13PM -0800, Linda Walsh wrote:
> For an array, you mean? like
> array a=( 1 2 3)
> array a+=( 4 5 6)
> then you get array a=(5 7 9).
Oh dear gods, no.
imadev:~$ a=(1 2 3)
imadev:~$ a+=(4 5 6)
imadev:~$ declare -p a
declare -a a='([0]="1" [1]="2" [2]="3" [3]="4" [4]="5" [5]="6")'
If you're proposing a change to this, it will break MANY scripts.
- bug adding K,V pairs to existing hash with HASH+=([K]=V), Linda Walsh, 2016/02/15
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Chet Ramey, 2016/02/15
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Linda Walsh, 2016/02/15
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Chet Ramey, 2016/02/15
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Dan Douglas, 2016/02/16
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Linda Walsh, 2016/02/16
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Dan Douglas, 2016/02/16
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Dan Douglas, 2016/02/16
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V),
Greg Wooledge <=
- Re: bug adding K,V pairs to existing hash with HASH+=([K]=V), Chet Ramey, 2016/02/16