Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: perform expansion for precommand modifiers
- X-seq: zsh-workers 41015
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: perform expansion for precommand modifiers
- Date: Wed, 26 Apr 2017 14:25:08 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=398l3wg1v613v3vjhiz2Qwj47+2grP4ixEAzNN42g4M=; b=rK8W9SV37fcUC68jO5Ng2t2kWl0dewRi16CWcTVDtQH9t+tQtu0jzlv8CbQKqdZNVf RPw8Pqaz+EyqOuFOeGBXX5MXV8ZWM0N9PDR3FJ+lOT0gAlKfLde3ROV57iRd05BOoZga C4sRVA38EnJnDTqwOtQ7/GZwCIoOtQJtt+ThPUmxHWC+8Vd/dYktlwM6dpIfoTJgSgkl Ymlb+cVX3tJkcg8pB/HgTyddN1ZTcT28xd2V9dg0bnUEtMvtI9Yxc15ZXD/NdzXFGGXo IkJH6JbkMp8KUa+T13ZLTfJirTEGxBejbM7b+00WDKsmRBDhacO1jNKpgWMa2DICr9FQ L2Lg==
- In-reply-to: <20170426194517.GA12961@fujitsu.shahaf.local2>
- 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> <20170426194517.GA12961@fujitsu.shahaf.local2>
On Apr 26, 7:45pm, Daniel Shahaf wrote:
}
} Is this worth a NEWS entry? (not README since the change is backwards
} compatible)
This also fixes this bug reported recently, to wit, quoting a precommand
modifier to protect it from alias expansion did not work correctly:
torch% alias exec='echo foo'
torch% ( exec -c printenv )
foo -c printenv
torch% ( \exec -c printenv )
zsh: command not found: -c
Now:
torch% alias exec='echo foo'
torch% ( exec -c printenv )
foo -c printenv
torch% ( \exec -c printenv )
torch% ( \exec printenv )
MANPATH=... and so on
Messages sorted by:
Reverse Date,
Date,
Thread,
Author