[yocto] busybox 1.21 ash bug?

Diego Sueiro diego.sueiro at gmail.com
Tue Dec 10 09:14:21 PST 2013


On Tue, Dec 10, 2013 at 1:46 PM, Olof Johansson <olof.johansson at 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*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131210/84fbfd65/attachment.html>


More information about the yocto mailing list