bugfindutils - Bugs: bug #3982, "xargs -P 1 -p" causes...

 
 

bug #3982: "xargs -P 1 -p" causes xargs to prompt for confirmation of command B while command A still running

Submitted by:  James Youngman <jay>
Submitted on:  Sat 14 Jun 2003 12:19:55 PM UTC  
 
Category: xargsSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Originator Name: Dan JacobsonOpen/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 03 May 2004 09:54:25 AM UTC, comment #1:

I don't think this is a bug, to be honest.

James Youngman <jay>
Project Administrator
Sat 14 Jun 2003 12:19:55 PM UTC, original submission:

Gentlemen, this script proves that xargs doesn't wait for the last
command to finish before prompting for the next, causing the output to
interfere with the prompting, after a "y". Find, however, doesn't have
this problem.

cd /tmp
touch a b c
find a b c -ok ls -l {} \;
echo a b c|xargs -n 1 -p ls -l

Further investigation with 'y's to:
echo 'sleep 22;echo $$' > sleepy
chmod +x sleepy
echo a b c|xargs -n 1 -p -P 1 ./sleepy

shows that not one, but two processes are allowed at one time, and -P
0, as the man page mentions, is not a remedy.

I.e. answering y to each query, there is no way to have it wait for
the first job to complete before asking about the second. -P 1 means
one background job, -P 2 means two background jobs... -P 0 means
unlimited background jobs... there is no way to make 0 background
jobs! You guys blew it. GNU xargs version 4.1.7

James Youngman <jay>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 03 May 2004 09:54:25 AM UTCjayStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1