NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/38315: make: ?= should resolve LHS



The following reply was made to PR toolchain/38315; it has been noted by GNATS.

From: "Simon J. Gerraty" <sjg%crufty.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/38315: make: ?= should resolve LHS 
Date: Thu, 27 Mar 2008 17:18:35 -0700

 > > The alternative? 
 > just do
 
 Yep, after I had some coffee I did that ;-)
 Sent the updated patch this morning.
 
 > I messed up the test case.  I think I meant this:
 > 
 >      DOLLAR = $$
 >      LBRACE = {
 >      RBRACE = }
 >      # This creates a variable whose name is 'V.${DOLLAR}'.
 >      V.$$${LBRACE}DOLLAR${RBRACE} = bar
 >         # This should set the variable whose name is 'V.$', not the
 >         # variable whose name is 'V.${DOLLAR}'.  If VarFind is called
 >         # before looking for '$' in the LHS then I think it will
 >         # incorrectly think "Nothing to do, because the variable whose
 >         # name is 'V.${DOLLAR}' is already set".
 >      V.${DOLLAR} ?= baz
 > 
 >      all:
 >              # I want this to print "baz", but I think it will print "bar"
 >              @echo V.$$$$= ${V.$$}
 
 So gmake prints 'baz', our make (with[out] patch - original or
 revised)  and freebsd's print ''.
 
 --sjg
 


Home | Main Index | Thread Index | Old Index