[Top][All Lists]
[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.
- feature request: zero-terminated lines for comm, Lasse Kliemann, 2007/09/09
- Re: feature request: zero-terminated lines for comm, John Cowan, 2007/09/09
- Re: feature request: zero-terminated lines for comm, Lasse Kliemann, 2007/09/09
- Re: feature request: zero-terminated lines for comm, John Cowan, 2007/09/09
- Re: feature request: zero-terminated lines for comm, James Youngman, 2007/09/09
- Re: feature request: zero-terminated lines for comm, John Cowan, 2007/09/09
- Re: feature request: zero-terminated lines for comm, James Youngman, 2007/09/09
- Re: feature request: zero-terminated lines for comm, Brian Dessent, 2007/09/09
- Re: feature request: zero-terminated lines for comm,
James Youngman <=
- Re: feature request: zero-terminated lines for comm, Brian Dessent, 2007/09/10
- Re: feature request: zero-terminated lines for comm, Steve Ward, 2007/09/20
- Re: feature request: zero-terminated lines for comm, Bob Proulx, 2007/09/20
Re: feature request: zero-terminated lines for comm, Pádraig Brady, 2007/09/10