Bash shell support?
Riaz Rahaman
rahaman.riaz at gmail.com
Wed Aug 23 10:36:35 UTC 2006
Hi All,
Thanks all for the info provided, I came to know a lot of things I didnt
know.
I am trying to run the ltp test cases on the busybox and there were two
scripts that were giving errors. One was the fs_inod and the other rwtest.
The problem with fs_inod was that busybox doesn't support function so I
changed all the function fun_name() to func_name() and this script is
working fine. But when it comes to rwtest script I get this wierd errors
rwtest: 215: 9: not found
rwtest: 268: [[: not found
rwtest: 319: Syntax error: Bad substitution
I went thru the test case for the utilities that are not supported and found
that typeset was the only one that was not supported.
typeset -i n=0 --> if i am not wrong this initializes the variable n to zero
and sets it to be a of type integer. I replaced this with n=0 which only
does the initialization of the variable but no typesetting. I am not sure to
how far is it right, but I still get the above errors after doing the
change.
I am not looking at the option of patching the busybox to support these
utilities as of now, but more of changing this script to run on busybox.
Looking forward for suggestions.
thank you
Riaz
On 8/21/06, Roberto A. Foglietta <roberto.foglietta at gmail.com> wrote:
>
> Riaz Rahaman wrote:
> > Hi,
> >
> > I have been using Busy box version 1.1.2 and in that there was no
> > support for bash shell, but in version 1.2.1 when I do a make menuconfig
> > I find in the shells there is something called bourne shell options, but
> > in setting of default shell I dont find Bash?
> >
> > Is there a plan to include Bash shell in the future releases?
> >
>
> This summer I worked with dash (debian ash) from which bb-ash has been
> derived. You can find a patch collection here:
>
> http://www.roberto.foglietta.name/pub/embedded/
>
> which transform dash-0.5.3 into bash-like-shell adding these:
>
> - typeset, declare syntax (patch done)
> - $[] (patch done)
> - function keyword (patch done)
> - return <negative integer> (patch done)
> - test == for strings (patch done)
>
> not yed done
>
> - export -f, actually I do not plan to develop
> - let as builtin command, it exist in bb-ash
>
> If you like to port the same features to bb-ash I will test and use it
> on my embedded systems.
>
>
> Cheers,
> --
> Roberto A. Foglietta
> http://roberto.foglietta.name
> http://linux.genova.it
>
--
Regards,
Riaz Ur Rahaman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060823/0070f71f/attachment-0001.htm
More information about the busybox
mailing list