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
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,
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
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
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
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
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
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