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 23873
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: -u option does not work with recursive expansion?
- Date: Thu, 14 Feb 2019 17:10:31 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=MKoQ4X6A22zd1Hl25POJbxA6I3uej6wZrTnylEYx0ko=; b=dlJQnEooekko/+z2Nre96/h5ZkUpadCOVioSsjFODGkoO2v24wWYx4miXl0iyNZNWW I9+hPo09mNkwxPv1Z706x3tBhPxlV2MjD1OaAerq4DTskeo1P1duW3tgaDuAxVamnn4q Zi4Nv5oa9SCZOzo4W/FO/nbmzLMb3I4TQ33G2AFzTtsZWUqqSofY5chpbJUdf9XR3BLo tj8UXs3W8BINolgKgVBJLXSNCA9rL0jY+nPkVR7QbAuxEVCdC4l3w7MXw8Wc4T9hZcie /Y1FL86ce4EMRnYXqEHN5U85lmmZNmSL9eom5gPXdkJG1Eq1N4Iq6SvUkaQYZYSwXCGx Lesg==
- 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 4: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?
Not directly, but you can do
typeset ${foo}=baz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author