Subject: bug#20733: [PATCH] doc: mention 'for' syntax issue on older shells

From: Stephane Chazelas <[email-masked]>
Date: Thu, 4 Jun 2015 21:36:17 +0100

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