bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #45691, Accessing multiple arguments in {=...

 
 

bug #45691: Accessing multiple arguments in {= =}

Submitted by:  Ole Tange <tange>
Submitted on:  Tue 04 Aug 2015 01:53:34 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: In Progress
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 16 Aug 2015 10:19:48 AM UTC, comment #1:

Readonly version in [2e6a701f9]:

parallel -N2 echo '{= $arg[1] eq 3 and $_=8 =}' ::: 3 4

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 04 Aug 2015 01:53:34 PM UTC, original submission:

When reading multiple arguments {1} {2} it would be nice if you could easily access each argument in a simple way. E.g. as @arg

{= if($arg[1] gt $arg[2]) { $arg[1]++ } =}

Problem:

If $arg[1] changed, should $_ be recomputed?

What if both are changed:

{= if($arg[1] gt $arg[2]) { $arg[1]++; $_.="ged" } =}

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Aug 2015 10:19:48 AM UTCtangeStatusNone=>In Progress
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup1