On Tue, Dec 10, 2013 at 1:46 PM, Olof Johansson <olof.johans...@axis.com>wrote:
> That type of for loop is a bashism; as far as I know and can > tell, busybox ash does not support it (even with ASH_BASH_COMPAT=y). > > The code that is executed when the parser finds a "for" token: > > ash.c: parse_command(void) > ... > switch (readtoken()) { > ... > case TFOR: > if (readtoken() != TWORD || quoteflag || !goodname(wordtext)) > raise_error_syntax("bad for loop variable"); > > Are you sure it's using busybox ash when it actually works? I can > reproduce the error message your are seeing in both busybox 1.20 > and 1.21. > > > RANDOM is also an extension, but one that is supported by busybox > (or rather, can be). The default defconfig in oe-core does not > enable it, see ASH_RANDOM_SUPPORT. > I have a bbappend to enable it. What a shame. I'm really sorry about the buzz. I'm working based on Angstrom distribution setup-scripts, and for dylan version it is using bash as the default shell and for dora version it is using the ash from busybox. Regards, -- *dS Diego Sueiro /*long live rock 'n roll*/
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto