[BusyBox] arithmetic in ash

Rolland Dudemaine rolland.dudemaine at msg-software.com
Wed Aug 14 08:51:03 UTC 2002


Hello,
when giving this to debian ash :
i=1
i=$(($i+1))
echo $i

It outputs 2 (expected output). Busybox's ash outputs :
BusyBox v0.61.pre (2002.08.14-11:39+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# i=1
# i=$(($i+1))
Syntax error: Missing '))'

But I checked a bit in the source code, and bb's ash seems to handle 
arithmetics.
Any idea ?

Best regards,
Rolland Dudemaine




More information about the busybox mailing list