Adding bash support to hush: the todo list.

Bernd Petrovitsch bernd at petrovitsch.priv.at
Mon May 17 10:20:28 UTC 2010


On Son, 2010-05-16 at 19:49 -0500, Rob Landley wrote:
> So Gentoo's portage requires bash (not just bash, but bash 3.x), and I'm 
> trying to get it to work with busybox.  At least the following would need to 
> be done to get hush to act as something like a bash replacement:
[...]
> 4) Accept $[1+2] as a synonym for $((1+2))

"$(( ... ))" is at least mentioned in
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02 (whereas "$[ ... ]").
So it's probably easier, better and space-preserving to change that in
the scripts.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at



More information about the busybox mailing list