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

zargs doesn't work reliably



Usage: zargs [options --] [input-args] [-- command [initial-args]]

% touch -- -- -+
% zargs -- * -- ls -d
(eval):2: command not found: -+
% zargs * -- ls -d
ls: invalid option -- +
Try `ls --help' for more information.
% zargs * ls -d
-+ ls -d

since input-args is the only part you do not control, it should come
last, like so
Usage: zargs [options --] [command [initial-args]] -- [input-args]
A problem is how to give -- as initial-args then, maybe someone less
tired can come up with something?

--
Mikael Magnusson



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