Re: xargs -0 and -L

2010-02-05 Thread Atte Peltomäki
On Fri, Feb 05, 2010 at 02:49:16AM +0100, Ingo Schwarze wrote: Atte Peltomdki wrote on Thu, Feb 04, 2010 at 12:48:47PM +0200: On Tue, Feb 02, 2010 at 09:32:43PM +0100, Ingo Schwarze wrote: Antti Harri wrote on Tue, Feb 02, 2010 at 07:31:57PM +0200: xargs' -L switch isn't working when

Re: xargs -0 and -L

2010-02-05 Thread Marc Espie
On Fri, Feb 05, 2010 at 12:14:51PM +0200, Atte Peltomdki wrote: On Fri, Feb 05, 2010 at 02:49:16AM +0100, Ingo Schwarze wrote: Atte Peltomdki wrote on Thu, Feb 04, 2010 at 12:48:47PM +0200: On Tue, Feb 02, 2010 at 09:32:43PM +0100, Ingo Schwarze wrote: Antti Harri wrote on Tue, Feb 02,

Re: xargs -0 and -L

2010-02-05 Thread Brynet
Atte Peltomdki wrote: Where did you find it btw? I can't find 2008 edition anywhere that wouldn't require registration and whatnot. Hi, http://www.opengroup.org/onlinepubs/9699919799/ http://www.opengroup.org/onlinepubs/9699919799/mindex.html

Re: xargs -0 and -L

2010-02-04 Thread Atte Peltomäki
On Tue, Feb 02, 2010 at 09:32:43PM +0100, Ingo Schwarze wrote: Antti Harri wrote on Tue, Feb 02, 2010 at 07:31:57PM +0200: xargs' -L switch isn't working when using -0 flag. After checking POSIX.1 (2008), i conclude that our implementation and manual are correct in this respect. The -L

Re: xargs -0 and -L

2010-02-04 Thread Philip Guenther
On Thu, Feb 4, 2010 at 2:48 AM, Atte Peltomdki atte.peltom...@iki.fi wrote: On Tue, Feb 02, 2010 at 09:32:43PM +0100, Ingo Schwarze wrote: Antti Harri wrote on Tue, Feb 02, 2010 at 07:31:57PM +0200: xargs' -L switch isn't working when using -0 flag. After checking POSIX.1 (2008), i conclude

Re: xargs -0 and -L

2010-02-04 Thread Ingo Schwarze
Hi Atte, Atte Peltomdki wrote on Thu, Feb 04, 2010 at 12:48:47PM +0200: On Tue, Feb 02, 2010 at 09:32:43PM +0100, Ingo Schwarze wrote: Antti Harri wrote on Tue, Feb 02, 2010 at 07:31:57PM +0200: xargs' -L switch isn't working when using -0 flag. After checking POSIX.1 (2008), i conclude

xargs -0 and -L

2010-02-02 Thread Antti Harri
Hi, xargs' -L switch isn't working when using -0 flag. Here's a demonstration: $ cd /tmp/ $ mkdir foo bar $ find /tmp/foo /tmp/bar | xargs -L 1 echo /tmp/foo /tmp/bar $ find /tmp/foo /tmp/bar -print0 | xargs -0 -L 1 echo /tmp/foo /tmp/bar Tested also on OS X and Linux and they print two lines

Re: xargs -0 and -L

2010-02-02 Thread Ingo Schwarze
input. ASCII nul characters do not delimit lines. Also, be careful not to confuse -L with -n. Here's a demonstration: $ cd /tmp/ $ mkdir foo bar $ find /tmp/foo /tmp/bar | xargs -L 1 echo /tmp/foo /tmp/bar $ find /tmp/foo /tmp/bar -print0 | xargs -0 -L 1 echo /tmp/foo /tmp/bar Fine