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


Groups > gnu.bash.bug > #15187

Re: Unexpected result of array assignment

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Henning <xaoxx@t-online.de>
Newsgroups gnu.bash.bug
Subject Re: Unexpected result of array assignment
Date Thu, 18 Jul 2019 10:58:52 +0200
Lines 10
Approved bug-bash@gnu.org
Message-ID <mailman.1632.1563440335.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>
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 1563440336 18573 209.51.188.17 (18 Jul 2019 08:58:56 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 <nycvar.YAK.7.76.1907180212120.95422@nzl.bcra-fbhepr.pb.hx>
Content-Language en-US
X-ID bL0wu-ZC8hCxkJVsFSZkZzJvXclrPz6BkphlmZGQSlWWZvggfqbg6WOzCwVVBWawU+
X-TOI-MSGID 172a10b2-fe56-40f3-a2a5-040b3efa11ab
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 <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <af7d9768-fe41-2c93-ee05-58932a390b80@t-online.de>
X-Mailman-Original-References <nycvar.YAK.7.76.1907180212120.95422@nzl.bcra-fbhepr.pb.hx>
Xref csiph.com gnu.bash.bug:15187

Show key headers only | View raw


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")'

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 10:58 +0200

csiph-web