bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #37042, -J foo is taken from the whole...

 
 

bug #37042: -J foo is taken from the whole command line - not just the part before the command

Submitted by:  Ole Tange <tange>
Submitted on:  Mon 06 Aug 2012 11:32:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 04 Jul 2013 03:33:48 PM UTC, comment #4:

Testsuite in [c1f63543].

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 02 Jul 2013 07:47:29 PM UTC, comment #3:

Fixed in [ea151d0].

Test suite:

$ cat /home/tange/.parallel/test_tag
--tagstring ole
$ src/parallel --tagstring a -J test_tag ls ::: NEWS
a NEWS
$ src/parallel --tagstring a ls -J test_tag ::: NEWS
a ls: invalid option -- 'J'
a Try `ls --help' for more information.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 02 Jul 2013 07:41:15 PM UTC, comment #2:

It is caused by:

# Check if there is a --profile to set @opt::profile
GetOptions("profile|J=s" => \@opt::profile,
"plain" => \$opt::plain) || die_usage();

This section is there so that a profile is read before parsing arguments from the command line. The arguments from the command line overrides the settings in the profile.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 06 Aug 2012 11:33:54 PM UTC, comment #1:

This:

parallel ls -J test_tag ::: du-rn

should give this:

ls: invalid option -- 'J'

But it gives:

du-rn du-rn

-J test_tag is eaten by parallel.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 06 Aug 2012 11:32:18 PM UTC, original submission:
Ole Tange <tange>
Project AdministratorIn charge of this item.

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 Jul 2013 03:33:48 PM UTCtangeOpen/ClosedOpen=>Closed
    Tue 02 Jul 2013 07:47:29 PM UTCtangeStatusConfirmed=>Fixed
    Mon 06 Aug 2012 11:33:54 PM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup