bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #32194, -L 0, -s 0, -n 0, -N 0 should use...

 
 

bug #32194: -L 0, -s 0, -n 0, -N 0 should use zero arguments

Submitted by:  None
Submitted on:  Thu 20 Jan 2011 06:09:21 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Postponed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Feb 2011 03:14:42 PM UTC, comment #4:

-l 0 -L 0 -n 0, and -N 0 are implemented by [ff48e14].

-s 0 will not be implemented.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Fri 18 Feb 2011 02:24:44 PM UTC, comment #3:

Ignore last comment

Ole Tange <tange>
Project AdministratorIn charge of this item.
Fri 18 Feb 2011 02:22:40 PM UTC, comment #2:

After --tollef was implemented -l and --max-lines can also cause problems:

parallel -l echo ::: ole
parallel --max-lines echo ::: ole

This is because -l now takes a string instead of an integer. If it could be taking a float then -l problem would be solved.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Thu 20 Jan 2011 11:30:49 PM UTC, comment #1:

It is an interesting idea.

It is incompatible with xargs and goes against the rule that you can compute number of command lines as:

args / (args per command line)

If it is a small change it might get implemented. If it is a big change it will not as the user can simply do:

seq 0 5 | parallel -n 0 echo x';'true

and get a similar effect (except for the return code being lost)

Ole Tange <tange>
Project AdministratorIn charge of this item.
Thu 20 Jan 2011 06:09:21 PM UTC, original submission:

Sometimes I'd like to run a command X number of times with no arguments, but GNU parallel currently appends one:

$ seq 0 5 | parallel -n 0 echo x
x 0
x 1
x 2
x 3
x 4
x 5

Should be:
x
x
x
x
x
x

Similarly for -N 0, -L 0, -s 0.

If there is a better way of using no arguments it should be more prominently documented.

Anonymous

 

(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

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Feb 2011 03:26:55 PM UTCtangeOpen/ClosedOpen=>Closed
    Thu 20 Jan 2011 11:30:49 PM UTCtangeSeverity3 - Normal=>1 - Wish
      StatusNone=>Postponed
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup1