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

Re: zargs doesn't work reliably



On 2006-08-18 05:16:50 +0200, Mikael Magnusson wrote:
> On 8/18/06, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >(End manual page example, begin new one.)  You can even do:
> >
> >          zargs -e$'\0' -- * $'\0' ls -d
> >
> >unless you somehow have a file named (the nul byte).

AFAIK, a file name can't contain a nul byte (anyway this would break
many things, as the nul byte is the string terminator in C).

[...]
> Would this be possible?
> zargs '[options]' 'command [initial-args]' [input-args]
> ie the ' are literal quotes in the command so zargs knows exactly what
> to do with the first two arguments (in which case you'd have to zargs
> '' '' * if you wanted to omit them so maybe not aesthetically pleasing
> in that regard).

What if you need an initial-arg that contains a space?

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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