bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #38356] xargs -P option creates wrong result


From: Frank Huang
Subject: [bug #38356] xargs -P option creates wrong result
Date: Wed, 20 Feb 2013 17:52:42 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

URL:
  <http://savannah.gnu.org/bugs/?38356>

                 Summary: xargs -P option creates wrong result
                 Project: findutils
            Submitted by: congshi
            Submitted on: Wed 20 Feb 2013 05:52:40 PM GMT
                Category: xargs
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

I searched and did not find related fix/bug

script ff
find . -type f \( -name "*\.[cC]" -o -name "*\.[hH]" -o -name
"*\.[cC][pP][pP]" \) | xargs -I"{}" grep -Hn $1 $2 $3 $4 $5 $6 $7 $8 $9 "{}"

script ff0
find . -type f \( -name "*\.[cC]" -o -name "*\.[hH]" -o -name
"*\.[cC][pP][pP]" \) | xargs -P0 -I"{}" grep -Hn $1 $2 $3 $4 $5 $6 $7 $8 $9
"{}"

cd to kernel source /usr/src/linux
and run the scripts as
    ff -w long > /dev/shm/1
and
    ff0 -w long > /dev/shm/0

The result is different and the line in /dev/shm/0 are mangled and the file
size is smaller.

Slackware 13.0.0.0.0

uname -a                
Linux test 2.6.36.2-smp #1 SMP PREEMPT Tue Dec 11 15:28:02 PST 2012 i686
Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz GenuineIntel GNU/Linux

xargs --version
xargs (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38356>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]