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

 
 

bug #54161: Expansion of $$* is incorrect

Submitter:  None
Submitted:  Thu 21 Jun 2018 09:18:58 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.2.1 Operating System:  Any
Fixed Release:  4.3 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Fixed via a patch from Jouke Witteveen.  Thanks!

Paul D. Smith <psmith>
Group administrator
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)
  •  

    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
    2019-12-18 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code