Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15191

Re: Unexpected result of array assignment

From Henning <xaoxx@t-online.de>
Newsgroups gnu.bash.bug
Subject Re: Unexpected result of array assignment
Date 2019-07-18 15:55 +0200
Message-ID <mailman.1654.1563458147.2688.bug-bash@gnu.org> (permalink)
References <nycvar.YAK.7.76.1907180212120.95422@nzl.bcra-fbhepr.pb.hx> <af7d9768-fe41-2c93-ee05-58932a390b80@t-online.de> <20190718121206.GV2450@eeg.ccf.org> <a56a6f06-5220-7309-2049-a43a78cd984d@t-online.de>

Show all headers | View raw


On 18/07/2019 14:12, Greg Wooledge wrote:
> On Thu, Jul 18, 2019 at 10:58:52AM +0200, Henning wrote:
>
>> 	eval 'foo=(["key"]="'"${foo["key"]}"' value2")'
> 
> If you just want to work around the bug, why not do it in the simplest
> way possible?
> 
> foo["key"]+=" value2"
> 
Of course, you are right.

Henning

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Unexpected result of array assignment Henning <xaoxx@t-online.de> - 2019-07-18 15:55 +0200

csiph-web