Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15188
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Andreas Schwab <schwab@suse.de> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Unexpected result of array assignment |
| Date | Thu, 18 Jul 2019 11:19:29 +0200 |
| Lines | 19 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1634.1563441578.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> <mvm7e8f3djy.fsf@suse.de> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| X-Trace | usenet.stanford.edu 1563441581 19071 209.51.188.17 (18 Jul 2019 09:19:41 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org |
| To | Henning <xaoxx@t-online.de> |
| Envelope-to | bug-bash@gnu.org |
| X-Virus-Scanned | by amavisd-new at test-mx.suse.de |
| X-Yow | I'm meditating on the FORMALDEHYDE and the ASBESTOS leaking into my PERSONAL SPACE!! |
| In-Reply-To | <af7d9768-fe41-2c93-ee05-58932a390b80@t-online.de> (Henning's message of "Thu, 18 Jul 2019 10:58:52 +0200") |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] |
| X-Received-From | 195.135.220.15 |
| 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 | <mvm7e8f3djy.fsf@suse.de> |
| X-Mailman-Original-References | <nycvar.YAK.7.76.1907180212120.95422@nzl.bcra-fbhepr.pb.hx> <af7d9768-fe41-2c93-ee05-58932a390b80@t-online.de> |
| Xref | csiph.com gnu.bash.bug:15188 |
Show key headers only | View raw
On Jul 18 2019, Henning <xaoxx@t-online.de> 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")'
This will break if ${foo["key"]} contains any of $ ` " \ <newline>.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Unexpected result of array assignment Andreas Schwab <schwab@suse.de> - 2019-07-18 11:19 +0200
csiph-web