bugGNU 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

Submitter:  Ole Tange <tange>
Submitted:  Mon 06 Aug 2012 11:32:18 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Testsuite in [c1f63543].

Ole Tange <tange>
Group administrator
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>
Group administrator
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>
Group administrator
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>
Group administrator
Mon 06 Aug 2012 11:32:18 PM UTC, original submission:  


Ole Tange <tange>
Group administrator

 

(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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-04 tange Open/ClosedOpen Closed
    2013-07-02 tange StatusConfirmed Fixed
    2012-08-06 tange StatusNone Confirmed
        Assigned toNone tange

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code