bugmake - Bugs: bug #57102, $(wildcard) caches the result, and...

 
 

bug #57102: $(wildcard) caches the result, and returns incorrect results on subsequent calls with the same parameter

Submitter:  None
Submitted:  Tue 22 Oct 2019 09:03:10 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.2.1 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Dec 2019 02:59:27 PM UTC, comment #1: 

This is a duplicate of bug #41273

Paul D. Smith <psmith>
Group administrator
Tue 22 Oct 2019 09:03:10 PM UTC, original submission:  

Here's an example:

$(info $(wildcard foo*)) # Prints nothing as expected
$(shell touch foo)
$(info $(wildcard foo*)) # Still prints nothing!
$(shell sleep 1)
$(info $(wildcard foo*)) # Nothing
$(info $(wildcard foo))  # Prints `foo`

Then if you restart `make` without deleting `foo`, all 4 `wildcard` calls do find the file.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-27 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code