From: Bart Schaefer <schaefer@brasslantern.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 17:10:31 -0800 [thread overview]
Message-ID: <CAH+w=7bwC303Hgz-wdmAPYrufaiF6o7XTFeaf3Ht1EEsr_ZMRw@mail.gmail.com> (raw)
In-Reply-To: <20190215004110.wq4pluv3fprt3gtf@gmx.de>
On Thu, Feb 14, 2019 at 4: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?
Not directly, but you can do
typeset ${foo}=baz
next prev parent reply other threads:[~2019-02-15 1:11 UTC|newest]
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 [this message]
2019-02-15 1:41 ` Matthew Martin
Reply instructions:
You may reply publicly 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='CAH+w=7bwC303Hgz-wdmAPYrufaiF6o7XTFeaf3Ht1EEsr_ZMRw@mail.gmail.com' \
--to=schaefer@brasslantern.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).