bugmake - Bugs: bug #41417, \* in a prerequisite matches \* as...

 
 

bug #41417: \* in a prerequisite matches \* as well as *

Submitter:  None
Submitted:  Sat 01 Feb 2014 05:35:19 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  4.0 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Feb 2014 12:29:48 AM UTC, comment #1: 

Yes, this is tricky.  Make invokes the standard globbing facilities which escapes the as expected, and then does not find any files matching the static filename .o.

So, it returns to make that no matches were found.  When no matches are found for globbing make just uses the filename as-is.  In this case, that's \*.o which is why it matches.

I guess the only way to solve this would be for make to go through the filename and try to un-escape the globbing characters itself if no matches were found by the globbing facilities.

Paul D. Smith <psmith>
Group administrator
Sat 01 Feb 2014 05:35:19 AM UTC, original submission:  

In a prerequisite, the manual states that an asterisk can be escaped with a backslash to suppress globbing. However, \*.o also matches \*.o, as well as the expected *.o.

This means that make cannot handle asterisks in filenames reliably.

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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-03 psmith Summary\\* in a prerequisite matches \\* as well as * \* in a prerequisite matches \* as well as *

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code