Source-Changes-D archive

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

Re: CVS commit: src/usr.bin/make



On Wed, Jun 09, 2010 at 01:19:29PM -0600, M. Warner Losh wrote:
> 
> It looks like it is lazy to me for all non-loop variables in FreeBSD:
...
> % cat M
> FOO=1
> BAR=2
> .for j in a b c
> FOO+= ${BAR} ${j}
> .endfor
> BAR=3
> 
> all:
>         @echo ${FOO}
>         @echo ${BAR}
> %  make -f M
> 1 3 a 3 b 3 c
> 3
> %
> 
> Not sure if this is "correct" or "expected" but it strikes me as
> "useful" and changes to this behavior would break things...

That is the expected/correct behaviour.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index