zsh-users
 help / Atom feed
From: Matthew Martin <phy1729@gmail.com>
To: dominik.vogt@gmx.de, Zsh Users <zsh-users@zsh.org>
Subject: Re: -u option does not work with recursive expansion?
Date: Thu, 14 Feb 2019 19:41:47 -0600
Message-ID: <CAGnh9tAWa+SefVJpi6_iLd=PCf3G9Gx+wZE00tQqBCSqk+rVyQ@mail.gmail.com> (raw)
In-Reply-To: <20190215004110.wq4pluv3fprt3gtf@gmx.de>

On Thu, Feb 14, 2019 at 6:47 PM Dominik Vogt <dominik.vogt@gmx.de> 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

      parent reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14 23:07 Dominik Vogt
2019-02-14 23:45 ` Mikael Magnusson
2019-02-15  0:41   ` Dominik Vogt
2019-02-15  1:10     ` Bart Schaefer
2019-02-15  1:41     ` Matthew Martin [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGnh9tAWa+SefVJpi6_iLd=PCf3G9Gx+wZE00tQqBCSqk+rVyQ@mail.gmail.com' \
    --to=phy1729@gmail.com \
    --cc=dominik.vogt@gmx.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox