tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: (b)make: selecting every other element from a list
Thanks.
> l2:=
Any particular reason for using := and not = in this place?
> .for _i _j in $(l)
> l2+=$(_i)
> .endfor
Oops. I was sure this didn't work in older (NetBSD 4.0.1) versions of (b)make,
but I just checked it does work. I (wrongly) remembered this ending up in l2
being ${_i} ${_i} ${_i} after the loop, and subsequent expansion of ${l2}
repeating the last value ${_i} was set to. Strange.
Home |
Main Index |
Thread Index |
Old Index