bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #31716, Options with optional arguments...

 
 

bug #31716: Options with optional arguments may eat next argument

Submitted by:  Ole Tange <tange>
Submitted on:  Sat 20 Nov 2010 08:11:01 PM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 29 Jul 2011 02:01:47 PM UTC, comment #2:

This seems to be fixed now. At least these work as expected.

printf "a\0b" | parallel --max-lines -0 echo
printf "a\0b" | parallel -l -0 echo
printf "a\0b" | parallel -e -0 echo
printf "a\0b" | parallel -i -0 echo

printf "a\nb" | parallel --max-lines -g echo
printf "a\nb" | parallel -l -g echo
printf "a\nb" | parallel -e -g echo
printf "a\nb" | parallel -i -g echo

printf "a\0b" | parallel -0 -j1 --max-lines -m echo
printf "a\0b" | parallel -0 -j1 -l -m echo
printf "a\0b" | parallel -0 -j1 -e -m echo
printf "a\0b" | parallel -0 -j1 -i -m echo

Ole Tange <tange>
Project Administrator
Fri 18 Feb 2011 02:24:26 PM UTC, comment #1:

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 Administrator
Sat 20 Nov 2010 08:11:01 PM UTC, original submission:

-e -i -l may take an argument. Make sure that -0 and similar arguments are not eaten by them.

Ole Tange <tange>
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

 

Carbon-Copy List
  • -unavailable- added by tange (Submitted the item)
  •  

    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
    Fri 29 Jul 2011 02:01:47 PM UTCtangeStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1