Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: perform expansion for precommand modifiers
- X-seq: zsh-workers 41013
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: perform expansion for precommand modifiers
- Date: Wed, 26 Apr 2017 19:45:17 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=8FWyQSn7H7mdAPKWD2 LWfBbcpWtnZozlPz7HUCcZDPk=; b=lUXu+OX2BNhpp3NfdFRnw/VNmVYx/YRg5g o03GVOPAYIbUsWjVD0xFdQftJDeFkfWWitHoFtET4jiNXVE8CC4qmnr+3/tOT16z eu7G7lr1oOZFIqsUZp1K2RENFE92yKRX3qtmYEff6CqD75VmtSABfL212poz6Zq9 T2YSJJp3xiwzmID8AVDKKK/ryIrzoD9yemXq3QSkzim358FCRbzRovY6CahQgWCN UH1r0d/jtv4/+KxryAVsHFqLwtc3F5JziIYwRWiF6WZqdVUcA7U0JITOuY61bSAU wwJAoLP4NI/HMhvGa3aRq+xKhsPDU7vY0CR99P9ZqnG8g7KgfGQw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=8FWyQSn7H7mdAPKWD2 LWfBbcpWtnZozlPz7HUCcZDPk=; b=Ql2WHJoMj0N6hnSTXeEx44DlAXiQqbvgAD 0VPJJjo1NIAbHuT46D8L7Cagy9xA+IMO4SBA8RBD9Jm3vjYTt1Y4fAfWwkdNC2h9 KQ9BL+SqTH7aHSU8biD2PLXJfwmfmWgUrnYWRZa5pAN9cMmSOBPIYUXMji4/3Ago SnVx29D6BTxkuQEh69gxPEn6HUuxnP0/8CGHjcoL2E7fy9M0JyFW45E4d3Sg5aD6 EfhByTzpDKQZlQhYLMJGs5feumYNAqU3o3cD2Zxr/wg4pY+AiYkUeFvhabiDUrlB Xa2bionnfHFunZpGsKm8tLiImLy1aPPDFnYg4vLrAij8+dk7qmnA==
- In-reply-to: <20170425101520.23910ede@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170425091533eucas1p26af70366557848059af3b7c8957f1d55@eucas1p2.samsung.com> <20170425101520.23910ede@pwslap01u.europe.root.pri>
Peter Stephenson wrote on Tue, Apr 25, 2017 at 10:15:20 +0100:
> This is something I've been meaning to get around to for a while.
> "exec" and "command" have a for quite a long time now taken options,
> but the parsing hadn't caught up properly so that it wasn't possible to
> put the options, let alone the modifiers themselves, in a parameter.
> This fixes both --- see the new tests.
Is this worth a NEWS entry? (not README since the change is backwards
compatible)
diff --git a/NEWS b/NEWS
index 5479251..4b5e12a 100644
--- a/NEWS
+++ b/NEWS
@@ -4,5 +4,15 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
Note also the list of incompatibilities in the README file.
+Changes from 5.3.1 to 5.4
+-------------------------
+
+The 'exec' and 'command' precommand modifiers, and options to them, are
+now parsed after parameter expansion. Previously, both the modifier
+and any options to it were only recognised if they had already been
+present in the command line before any parameter references were expanded.
+Example: 's=command; $s -V ls' now works as expected.
+
+
Changes from 5.2 to 5.3.1
-------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author