bugGNU Parallel - Bugs: bug #45842, Do not evaluate {= =} twice

 
 

bug #45842: Do not evaluate {= =} twice

Submitter:  Ole Tange <tange>
Submitted:  Sat 29 Aug 2015 09:00:02 AM 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
   

Sat 19 Mar 2022 08:26:17 AM UTC, comment #3: 

Fixed in [20211022].

Ole Tange <tange>
Group administrator
Sat 06 Mar 2021 07:43:12 AM UTC, comment #2: 

Broken again for the first #jobslots commands.

When computing #jobslots, we need to know #commands >= #jobslots. So we must build #jobslots commands. The command may contain {%} which is only known when the command starts. So ungetting the commands will not work: We need to re-evaluate the replacement strings.

Can we cheat and only read the args without evaluating them? In other words, simply assume -X is not set?

Ungetting args should be safe.

Can we avoid pre-reading arguments and do the computation of #jobslots as we go?


Ole Tange <tange>
Group administrator
Wed 09 Sep 2015 08:42:40 PM UTC, comment #1: 

Fixed in [e65907fe].

Ole Tange <tange>
Group administrator
Sat 29 Aug 2015 09:00:02 AM UTC, original submission:  

This should give 1..5

seq 5|ppar echo '{= $_=++$::G =}'

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

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-19 tange StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-05-15 tange StatusFixed Confirmed
    2021-03-06 tange Open/ClosedClosed Open
    2015-09-09 tange StatusNone Fixed
        Assigned toNone tange
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code