Re: bug in $(wildcard) with trailing slash

2012-03-03 Thread Paul Smith
On Fri, 2012-03-02 at 06:57 -0700, Eric Blake wrote: > Make fails to restrict output to just directories when a wildcard > contains both a trailing slash and internal slashes, even though it does > the right thing with no internal slashes. Hi Eric; This is actually a bug in glibc's glob() functio

bug in $(wildcard) with trailing slash

2012-03-02 Thread Eric Blake
Make fails to restrict output to just directories when a wildcard contains both a trailing slash and internal slashes, even though it does the right thing with no internal slashes. $ mkdir /tmp/example $ cd /tmp/example/ $ touch a $ mkdir b $ printf 'all:\n\t@echo $(wildcard */)' | make -f - b/ $