Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: -u option does not work with recursive expansion?
- X-seq: zsh-users 23874
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: -u option does not work with recursive expansion?
- Date: Thu, 14 Feb 2019 19:41:47 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qVdYVJXYDtwwBODlKNvlcPqIXOTdC9h5LjRXmjrn4pk=; b=sCtswvNL68jrk66pdy9KlZ29jirtQJihb/nR54maYzruDxzEVbf6e/6Bpl7IKe76CE DgrteZFIlzyxSsja5rb7GWGtLnO0IejAVYjxsQjOEQXmf67mA0HsXOnjJFwk5pnXz9gU N0pYM6INgpeH+1bK7iFBNSzVwWgr+WvrsKv4bSjAXRItEC2zfSctaPugXi1e96D8xfVl zcOPKfQ8DnHhLnPvEVWA3I4MP8tDBY6aI3wMppLCzS2COi3Skv6H7H/rbvds2K0yUGQQ DTvt8+KPNoD4/VQTm0+UoW6FoDesKMlhmTixCgfM+Ja+1OSOfSfpWwyZkl8STRj5FlTU PURA==
- In-reply-to: <20190215004110.wq4pluv3fprt3gtf@gmx.de>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20190214230743.drgd47wuwapj5os3@gmx.de> <CAHYJk3QLzi=H7ZoM4mObfr1drKHpgfNA_KPPsP6oBQaGSqpoCg@mail.gmail.com> <20190215004110.wq4pluv3fprt3gtf@gmx.de>
On Thu, Feb 14, 2019 at 6:47 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>
> Well, with (P) it's possible to do recursive expansion at the
> right side of an assigntment, but can you also do soething like
>
> foo=bar
> ${foo}=baz
>
> i.e. treat the contents of foo as the lvalue of an assignment?
> (Without using eval, of course.)
% foo=bar; : ${(P)foo::=baz}; typeset -p bar
typeset bar=baz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author