zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: PATCH: perform expansion for precommand modifiers
Date: Wed, 26 Apr 2017 14:25:08 -0700	[thread overview]
Message-ID: <170426142508.ZM19385@torch.brasslantern.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2017-04-26 21:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170425091533eucas1p26af70366557848059af3b7c8957f1d55@eucas1p2.samsung.com>
2017-04-25  9:15 ` Peter Stephenson
2017-04-26 19:45   ` Daniel Shahaf
2017-04-26 21:25     ` Bart Schaefer [this message]
2017-04-27  8:40       ` Peter Stephenson
2017-04-27 23:12         ` Bart Schaefer
2017-04-28  9:03           ` Peter Stephenson
2017-05-01 18:31             ` Daniel Shahaf

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=170426142508.ZM19385@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).