[Top][All Lists]

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

Re: Unexpected result of array assignment

From: Greg Wooledge
Subject: Re: Unexpected result of array assignment
Date: Thu, 18 Jul 2019 08:12:06 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, Jul 18, 2019 at 10:58:52AM +0200, Henning wrote:
> On 18/07/2019 03:16, Darren 'Tadgy' Austin wrote:
> >          foo=(["key"]="${foo["key"]} value2")
> using eval shoud also succeed, even for older bash:
>       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"

reply via email to

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