bugmake - Bugs: bug #54161, Expansion of $$* is incorrect

 
 

bug #54161: Expansion of $$* is incorrect

Submitted by:  None
Submitted on:  Thu 21 Jun 2018 09:18:58 AM UTC  
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  4.2.1 Operating System:  Any
Fixed Release:  4.3 Triage Status:  None

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Wed 18 Dec 2019 04:38:40 PM UTC, comment #1: 

Fixed via a patch from Jouke Witteveen.  Thanks!

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Thu 21 Jun 2018 09:18:58 AM UTC, original submission:  

The handling of $* is unexpected as it differs between the second expansion of the targets and the recipe.

$ cat Makefile
.SECONDEXPANSION:
%x: $$(info $$*); : $*

For examples such as treated in the manual, this works as expected:

$ make fox
fo
: fo

However, following the suggestion about path treatment in implicit rules, the following is unexpected:

$ make q/ux
u
: q/u

Observe the directory being stripped only in the expansion of $* in the target listing, but not in the recipe.

Anonymous

 

(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 psmith (Posted a comment)
  •  

    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.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-18 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.3

    Back to the top


    Powered by Savane 3.5