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

Re: Is "command" working right, yet?



On Tue, 11 Oct 2016 18:20:55 +0200
Martijn Dekker <martijn@xxxxxxxx> wrote:
> And another one (sorry): options aren't parsed at all if they're the
> result of an expansion.
> 
> % defpath=-p
> % command $defpath true
> zsh: command not found: -p

I've got some ideas about this that could be generally beneficial, but
they're quite intrusive, so this is probably going to get punted till
after the release.

The case of

command $(print -- -p) true

looks less tractable, however, without more rearrangement than I think
is workable.  It doesn't seem a particularly serious problem.

pws



Messages sorted by: Reverse Date, Date, Thread, Author