Re: Bug with comment parsing and variable expansion

2010-11-09 Thread Rafaël Carré
On Tue, 09 Nov 2010 10:24:11 -0500 Paul Smith wrote: > On Tue, 2010-11-09 at 15:47 +0100, Rafaël Carré wrote: > > Hello, > > > > I believe I've found a bug in make 3.81, or at least some confusing > > behaviour. > > > > Here is a comparison of GNU make and netbsd 'pmake' > > > > A-$(X) isn't e

Re: Bug with comment parsing and variable expansion

2010-11-09 Thread Paul Smith
On Tue, 2010-11-09 at 15:47 +0100, Rafaël Carré wrote: > Hello, > > I believe I've found a bug in make 3.81, or at least some confusing > behaviour. > > Here is a comparison of GNU make and netbsd 'pmake' > > A-$(X) isn't expanded to "A-1" because of the comment on the line where > X is set, alt

Re: Bug with comment parsing and variable expansion

2010-11-09 Thread Rafaël Carré
On Tue, 9 Nov 2010 15:47:36 +0100 Rafaël Carré wrote: > % make -v > GNU Make 3.81 Problem still exists in 3.82 -- ✍ Rafaël Carré ☺ signature.asc Description: PGP signature ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/list

Bug with comment parsing and variable expansion

2010-11-09 Thread Rafaël Carré
Hello, I believe I've found a bug in make 3.81, or at least some confusing behaviour. Here is a comparison of GNU make and netbsd 'pmake' A-$(X) isn't expanded to "A-1" because of the comment on the line where X is set, although X is set to "1" % cat Makefile X = 1 #comment Y = 1 A-$(X) = a B-