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:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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.

 

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can 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 UTC tange Open/ClosedOpen => Closed
    Tue 02 Jul 2013 07:47:29 PM UTC tange StatusConfirmed => Fixed
    Mon 06 Aug 2012 11:33:54 PM UTC tange StatusNone => Confirmed
        Assigned toNone => tange

    Back to the top


    Powered by Savane 3.3