2015-06-04 14:06:03 -0600, Eric Blake:
[...]
> +$ @kbd{cat Makefile}
> +list =
> +bad:
> + @@for arg in $(list); do echo $$arg; done
> +good:
> + @@list='$(list)'; for arg in $$list; do echo $$arg; done
[...]
Another option is to use:
for arg in $${-+$(list)}; do echo $$arg; done
That's ${var+value} that expands to value if var is set. $- is
always set. $0 could also be used instead.
--
Stephane
