NetBSD-Bugs archive

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

Re: bin/43821 (make: oldstanding bug with loop variables)



Synopsis: make: oldstanding bug with loop variables

State-Changed-From-To: open->suspended
State-Changed-By: dholland%NetBSD.org@localhost
State-Changed-When: Wed, 01 Sep 2010 03:22:53 +0000
State-Changed-Why:
Whether it's a bug is debatable (getting "malformed conditional" is a bug
but that's a minor aspect of the issue) but this is deeply ingrained
behavior of loop variables and it's not readily changed or "fixed". Try
this example on for size:

.for i in 1 2 3
j=${i}       
.if !empty(j:M2)
res=passed ${j}
.endif  
.endfor

 all:
        @echo ${res}






Home | Main Index | Thread Index | Old Index