From: Peter Stephenson <p.stephenson@samsung.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Array expansion interacts with brace expansion in the wrong order
Date: Fri, 14 Jul 2017 10:45:55 +0100 [thread overview]
Message-ID: <20170714104555.0882ffe3@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20170714094831.576c3d79@pwslap01u.europe.root.pri>
This might be worth saying explicitly --- though things like this are
implicit throughout zsh's expansion rules.
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index d161b0b..c45f83a 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -856,8 +856,9 @@ all arguments to be removed.
Internally, each such expansion is converted into the
equivalent list for brace expansion. E.g., tt(${^var}) becomes
tt({$var[1],$var[2],)...tt(}), and is processed as described in
-noderef(Brace Expansion) below.
-If word splitting is also in effect the
+noderef(Brace Expansion) below: note, however, the expansion
+happens immediately, with any explicit brace expansion
+happening later. If word splitting is also in effect the
tt($var[)var(N)tt(]) may themselves be split into different list
elements.
)
pws
next prev parent reply other threads:[~2017-07-14 9:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 22:45 Anders Kaseorg
2017-07-13 23:48 ` Bart Schaefer
2017-07-14 1:42 ` Anders Kaseorg
2017-07-14 8:48 ` Peter Stephenson
2017-07-14 9:45 ` Peter Stephenson [this message]
2017-07-15 17:19 ` Peter Stephenson
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=20170714104555.0882ffe3@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@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).