[bug #61664] Messy output using xargs -P

Kirill Zhdanov <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?61664>

                 Summary: Messy output using xargs -P
                 Project: findutils
            Submitted by: storenth
            Submitted on: Пн 13 дек 2021 05:04:57
                Category: xargs
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 4.7.0
         Discussion Lock: Any
           Fixed Release: None

    _______________________________________________________

Details:

*Steps to reproduce*:
1. Call the next line:
xargs -P10 -n1 -I {} grep -oiE "^https?://(([[:alnum:][:punct:]]+)+)?{}="
./filtered_fetched_list.txt < ./params-list.txt | sort -u | head -n 10

*Expected result*: output entries contains http(s) start with string.
*Actual behavior*: output entries doesn’t contain http(s)
*Workaround*: using xargs with process count by default (without -P argument).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Пн 13 дек 2021 05:04:57  Name: xargs-p-issue.png  Size: 423КиБ  
By: storenth

<http://savannah.gnu.org/bugs/download.php?file_id=52490>
-------------------------------------------------------
Date: Пн 13 дек 2021 05:04:57  Name: params-list.txt  Size: 19КиБ  
By: storenth

<http://savannah.gnu.org/bugs/download.php?file_id=52491>
-------------------------------------------------------
Date: Пн 13 дек 2021 05:04:57  Name: xargs-without-p.png  Size: 483КиБ
  By: storenth

<http://savannah.gnu.org/bugs/download.php?file_id=52492>
-------------------------------------------------------
Date: Пн 13 дек 2021 05:04:57  Name: filtered_fetched_list.txt  Size:
66КиБ   By: storenth

<http://savannah.gnu.org/bugs/download.php?file_id=52493>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61664>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.