Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh precommand modifiers stop accepting argument if quoted



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