On 07/31/2013 11:01 AM, jida...@jidanni.org wrote: > What good is this? > > $ seq 111|xargs -n 5 -p > echo 1 2 3 4 5 ?... > echo 6 7 8 9 10 ?... > echo 11 12 13 14 15 ?...y > echo 16 17 18 19 20 ?...11 12 13 14 15 > > You need to do the operation first before issuing the next prompt!
Sorry, but this is not xargs' fault. You asked xargs to spawn multiple processed in parallel, and it is up to the kernel which of those processes gets scheduled first (they are competing with one another). Furthermore, since each of those processes all want access to the same terminal, there is no sane way to guarantee which of the processes will get there first. This is not an xargs bug. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature