Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Henning Newsgroups: gnu.bash.bug Subject: Re: Unexpected result of array assignment Date: Thu, 18 Jul 2019 15:55:44 +0200 Lines: 14 Approved: bug-bash@gnu.org Message-ID: References: <20190718121206.GV2450@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1563458147 28224 209.51.188.17 (18 Jul 2019 13:55:47 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:56.0) Gecko/20100101 Thunderbird/56.0 In-Reply-To: <20190718121206.GV2450@eeg.ccf.org> Content-Language: en-US X-ID: XR7Cu+ZTYhqyX5h+XAJsKnUwliCsOqn5nM7wwembrPFy7ucIDI+BLlQMrb9qzrdQOa X-TOI-MSGID: 5b9e4ab7-98d9-4e7e-8488-96647574bf55 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.25.134.80 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20190718121206.GV2450@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:15191 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