Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[key]+=val
- X-seq: zsh-workers 41758
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: [key]+=val
- Date: Mon, 25 Sep 2017 11:35:09 +0100
- Cms-type: 201P
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20170925103513eucas1p2b7d91180ccc6defe455daca9248ae222@eucas1p2.samsung.com>
I'm intending to make it so that
foo+=([key]+=val)
does something useful (appending to foo[key]) but
foo=([key]+=val)
doesn't (just creates the value), because you're starting with an empty
set of values in foo so there's nothing to append to. Does this sound
reasonable? It's a messy layering violation otherwise so it would need
a good reason to do it differently.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author