On March 7, 2015 3:04:52 PM GMT+01:00, "Robert P. J. Day" 
<[email protected]> wrote:
>
>  based on a recent post to this(?) list, i was curious about the
>following loop construct in u-boot.inc:
>
>        for config in ${UBOOT_MACHINE}; do
>            for type in in ${UBOOT_CONFIG}; do
>                if [ "${type}"x = "in"x ]
>                then
>                    continue
>                fi
>
>  the words "in in" above don't appear to be a typo, as the next
>condition explicitly checks for the value "in" and skips it. what's
>the rationale for that? i used "git blame" to examine the commit that

for may barf on empty iteration input.
One usually uses for i in ${foo} '';
and skips i with zero length. Any other is obviously fine, too though so 
nothing wrong or odd here.

HTH,

>introduced that, but it says nothing about that curiosity.
>
>rday


-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to