[BusyBox] arithmetic in ash

Vladimir N. Oleynik dzo at simtreas.ru
Wed Aug 14 09:44:40 UTC 2002


Rolland,
 
> 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 ?

Not ideas.
My last ash 
1) with debug mode echoed 2
2) without debug mode generate segmentation fault ;))) Oops, oops...


--w
vodz



More information about the busybox mailing list