Esben Haabendal <[email protected]> writes:
> Hi
>
> Trying to figure out the expected behavior of variable assignments.
>
> FOO = bar
> BAR_bar = 1
> BAR_${FOO} = 2
> BAR_bar = 3
> BAR_${FOO} = 4
> BAR_bar = 5
>
> gives
>
> BAR_bar = "4"
>
> Where/when is the variable names being expanded?
>
> And wouldn't it make more sense if variable names were expanded
> immediately, so that the above code would produce BAR_bar="5" ?
> I at least would find it less surprising.
>
> Of-course, this would be a change in semantics, but the fallout might be
> minimal, and it should be possible to check for it given specific
> meta-data.
Hmm... Of-course, all the FILES|SECTION|RDEPENDS|RRECOMMENDS_${PN}* in
bitbake.conf actually on the current semantics.
Perhaps it would make sense to add a new syntax for using immediate
expansion in the variable name, fx.
BAR_$${FOO} = "6", which would then assign "6" to the variable name
expanded immediately.
/Esben
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev