bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: zero-terminated lines for comm


From: James Youngman
Subject: Re: feature request: zero-terminated lines for comm
Date: Mon, 10 Sep 2007 11:26:55 +0100

On 9/10/07, Brian Dessent <address@hidden> wrote:
> James Youngman wrote:
>
> > While that is true, those utilities already coped with the space
> > character (for example, with "find -print" and "xargs -L").
>
> xargs cannot cope with filenames containing spaces without -0/-print0.
>
> $ echo -e "one two\nthree four" | xargs showargs
> argv[0] = 'showargs'
> argv[1] = 'one'
> argv[2] = 'two'
> argv[3] = 'three'
> argv[4] = 'four'
>
> I don't see how the xargs -L option has anything to do with the
> situation.

I beg your pardon.  Of course I meant -I.

$ printf "one    two\nthree four\n" | xargs -I {} showargs {}
argv[0] = /home/youngman/bin/showargs
argv[1] = one    two
argv[0] = /home/youngman/bin/showargs
argv[1] = three four

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]