Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] jp: fix segfaults during parameter expansion
- X-seq: zsh-workers 42272
- From: dana <dana@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] jp: fix segfaults during parameter expansion
- Date: Sun, 14 Jan 2018 08:10:59 -0600
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=RiwuA41V+7T3fOZ3uQHAPrQZ04zjOtiijI9O/uw7PPM=; b=onRuYQRRtmHmqyojS4LFpsDOjTAdnMz48/lUV+ui84/bl8h1ZhyWRoePOfPEXHsW4k O2a2MDf0W4ICMTZ+zpwYjcu2qT5puW7imkkxpRDxc5b+FHuYLrK/aCbRdv5w30kn8vr9 lbSluSGMUc6Abi86hJQ8kgE/aTbV0si3CJpjZfnAAgCSYms5QHGwNd+dJQ2cKC30pCpB hp7lHk8nVhFKYX5F7wNAcKjYf5FUzpO3t/JJwMMOdNK8nIwnST+8D5PALHDVrhIDR3bF sZUY/8kYpaCf/kWOy5dcTjBItm4mEGqEJK3WRzJNmkIM6xBxp3QS8p5Afc9J5REAJnuE iklQ==
- In-reply-to: <CAH+w=7bMF_Kzvme+5EVazsa2KKEHO2uh2-u_T0MSAx2H=zcXQg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180114060557.hmrvpg6t4rdebgv6@gmail.com> <CAH+w=7bMF_Kzvme+5EVazsa2KKEHO2uh2-u_T0MSAx2H=zcXQg@mail.gmail.com>
On 14 Jan 2018, at 06:06, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>What's the expected output of that substitution?
This was my segfault. I didn't expect anything from it exactly, i was just
messing about without giving much thought to what i was doing. But i guess what
i'd originally wanted was a way to indirectly assign a value to an association
element. Seems you have to do something like this?
local -A assoc
name='assoc[foo]'
: ${(P)name::=bar}
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author