wildcard function returns nothing when filename contains '_' or '[' characters

2011-10-23 Thread earlgrey
ex : __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod))) with MODVERDIR=fglrx-11.06[Driver 8.861] ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

Re: wildcard function returns nothing when filename contains '_' or '[' characters

2011-10-23 Thread Paul Smith
On Sun, 2011-10-23 at 19:21 +0200, earlgrey wrote: __modules := $(sort $(shell grep -h '\.ko' /dev/null $(wildcard $(MODVERDIR)/*.mod))) with MODVERDIR=fglrx-11.06[Driver 8.861] There's no problem with underscores. The problem with [] is that these are special to the shell's globbing