Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh precommand modifiers stop accepting argument if quoted
- X-seq: zsh-workers 40914
- From: Cuong Manh Le <cuong.manhle.vn@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: zsh precommand modifiers stop accepting argument if quoted
- Date: Thu, 30 Mar 2017 13:00:12 +0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cRvP/Sh12Yvi6IMf8irarnpG/mX/jYpHatjz+5HJWvs=; b=LfBvrGjwDc/NwMP4A4+KHhF5n3wePgflElDhOp7TZdVW6rDYU1eGYB+2IHajnAF57L oU6a6O2WoPdSHjXto2z84w0Pd/bcSQhh0c5PWBlsgrXAfC4894jfsnV4ylMTnSnKNXNQ S/HrMvoK4PCWO8vspyRkjuXdyrnDbjQIJIvN+sJK+CBzla4/b+xQ0rrC1RTM/fyKhvF0 O/KsCUV7BtSL77aNIi0o0ec39jhqtPOHZ+Kyljc6vEsW3E7oR02/NN/cS3pfOa1czZnk IaPqkjXSj5xN/NUZEo+H3fB3ogKbEFLlU2fDG4eVJsxTAgZCGvQmvZbC9ykvBUalrpa6 gNVQ==
- 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
Hi,
I see this behavior of `exec` and `command` precommand modifiers:
$ zsh -c '\exec -a foo zsh -c "print -- \$0"'
zsh:1: command not found: -a
$ zsh -c '\command -v ls'
zsh:1: command not found: -v
Sounds like they stopped accepting its options if quoted.
Is this behavior a feature or a bug? it it documented somewhere?
The full context: http://unix.stackexchange.com/q/354586/38906
Thanks.
Cuong Manh Le
https://cuonglm.xyz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author