Follow-up Comment #3, bug #38356 (project findutils):
xargs -P is not designed to make sure the output does not mix up. GNU
Parallel, however, is. So use GNU Parallel instead and it will work just
fine:
find . -type f ( -name ".[cC]" -o -name ".[hH]" -o -name "*.[cC][pP][pP]" ) |
parallel -P0 -I"{}" grep -Hn $1 $2 $3 $4 $5 $6 $7 $8 $9 "{}"
See:
http://www.gnu.org/software/parallel/man.html#differences_between_xargs_and_gnu_parallel
and http://www.youtube.com/playlist?list=PL284C9FF2488BC6D1
Propose: Close - not a bug (but a problem due to the design).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38356>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/