bugmake - Bugs: bug #50823, MAKEFILE_LIST contains wrong file...

 
 

bug #50823: MAKEFILE_LIST contains wrong file name if file name contains dollar character

Submitted by:  None
Submitted on:  Tue Apr 18 08:16:02 2017  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 4.2.1Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue Apr 25 14:56:13 2017, comment #1:

Patch to fix #50823, see attached file.

(file #40504)

Dominik Muth <dominik_muth>
Tue Apr 18 08:16:02 2017, original submission:

To reproduce:

$ echo -e 'all:\n\techo $(value MAKEFILE_LIST)' > /tmp/foo\$bar.mk
$ ./make -f '/tmp/foo$bar.mk'
echo /tmp/fooar.mk
/tmp/fooar.mk

I think this is inconsistent and contradicts the documentation, which states "MAKEFILE_LIST Contains the name of each makefile that is parsed by make, in the order in which it was parsed."

See also http://stackoverflow.com/q/43466130/2965738

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #40504:  0001-Make-MAKEFILE_LIST-a-recursively-expanded-variable.patch added by dominik_muth (3kB - application/octet-stream - Patch to fix #50823)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dominik_muth (Updated 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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Apr 25 14:56:13 2017dominik_muthAttached File-=>Added 0001-Make-MAKEFILE_LIST-a-recursively-expanded-variable.patch, #40504

    Back to the top


    Powered by Savane 3.1-cleanup1