math support in busybox shells

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 2 16:34:58 UTC 2009


2009/4/2 Mike Frysinger <vapier at gentoo.org>:
> only real issue ive seen so far is hush specific.  atm, the parser consumes
> all of $((...)) without doing any expansion on the resulting string.  so if i
> do something like:
> i=0
> echo $(($i + 1))
> the arith routine expects "0 + 1" but gets "$i + 1" and so dies -- it is the
> job of the shell to do dollar expansion first.  the non-dollar version works
> fine of course:
> echo $((i + 1))

Fixed in svn.
--
vda


More information about the busybox mailing list