Subject: [nb]make variable expansion bug [usr.bin/file] ?
To: None <current-users@netbsd.org>
From: Thierry Laronde <tlaronde@polynum.org>
List: current-users
Date: 10/06/2002 01:00:28
Hello,

I'm compiling current (actually a 21/09/02 snapshot) and a weird problem
occurs with the compilation of `file'.

The following variable assignment in the Makefile:

MAGDIRF:sh=     echo ${.CURDIR}/magdir/[0-9a-z]*

causes ./magdir/CVS to be included in the list and thus:

magic:          ${MAGFILES}
        cat ${MAGFILES} > ${.TARGET}

fails, `cat' grumbling that ./magdir/CVS is a directory.

Since the substitution of magdir/[0-9a-z]* behaves normally under my
Bourne Shells (ash, pdksh and bash) is the substitution handled directly 
by make and is this a known bug? Or Am I missing something obvious?

Note: this is a cross-compilation on a Debian/GNU/Linux host.

Thanks for any hint and congratulations for the work! BSD is
definitively a great creation!
-- 
Thierry Laronde (Alceste) <tlaronde@polynum.org>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C