bugmake - Bugs: bug #18123, wildcard function fails (...)*/...


bug #18123: wildcard function fails (...)*/ expansion

Submitted by:  None
Submitted on:  Thu 26 Oct 2006 03:21:56 PM UTC  
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.80 Operating System:  POSIX-Based
Fixed Release:  4.1 Triage Status:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Sun 20 Oct 2013 03:12:05 PM UTC, comment #2: 

A fix for this was just made to the GLIBC repo (see bug referenced below).  I'll pull the latest code into make's internal glob implementation for the next release, but for systems (like all GNU/Linux systems) that have glibc as their native library GNU make will defer to the system glob implementation, so you'll need to update your system glibc to get this fix.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
  Spam posted by sevanath
Sat 13 Jun 2009 09:58:46 PM UTC, comment #1: 

GNU make uses the libc glob(3) function to expand wildcard expressions.  I've checked with GNU libc and the behavior you're seeing is actually what glob(3) is returning to us.  Possibly other libc's will have different behavior.

I've filed a bug with GNU libc on this issue:


Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Thu 26 Oct 2006 03:21:56 PM UTC, original submission:  

Supposing wildcard function expands its arguments as the shell does, it should only generate directory paths when the pattern ends with /.
This is not the case : it does so this with */, but not with more complex patterns, which will also generate file paths.



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

Attach Files:

Attached Files
file #11080:  Makefile added by None (429B - application/octet-stream - Use make dirs, then make list to see the different behaviours)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by sevanath (Posted a comment)
  • -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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-20 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.1
    2009-06-21 psmith Summarywilcard function fails (...)*/ expansion => wildcard function fails (...)*/ expansion
    2006-10-26 None Attached File- => Added Makefile, #11080

    Back to the top

    Powered by Savane 3.6