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:54:13 +0200 Lines: 10 Approved: bug-bash@gnu.org Message-ID: References: <8821472f-df9f-3dba-ff2e-8c378348d679@t-online.de> 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 1563458059 28219 209.51.188.17 (18 Jul 2019 13:54:19 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: Content-Language: en-US X-ID: S+FR7mZD8hFX6ZW-+IIjRT2rQ59u7iIo0H7cPyYEXWB1mtStAGjS-aVgYakU9rZgim X-TOI-MSGID: 9362f91a-d99e-4edb-ae23-330b273266a1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.25.134.17 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: <8821472f-df9f-3dba-ff2e-8c378348d679@t-online.de> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:15190 On 18/07/2019 11:19, Andreas Schwab wrote: > On Jul 18 2019, Henning wrote: >> eval 'foo=(["key"]="'"${foo["key"]}"' value2")' > > This will break if ${foo["key"]} contains any of $ ` " \ . > Correct. I'd only taken blanks into account. Henning