[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: bug#1196: [BusyBox] bug#1196: ash applet doens't handle arithmetic properly..
From: "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date: 2001-07-27 7:15:02
[Download RAW message or body]
HeeChul Yun wrote:
> Package: busybox
> Version: 0.53-pre
>
> -- < t.sh > --
> a=0
> a=$(($a + 1))
> echo "a=$a"
> --------------
>
> $ash t.sh
> a=1
>
> Above script works fine in bash or normal ash version 0.3.7-1.
> However in ash applet in busybox 0.53-pre. It got following messages.
>
> $ busybox sh t.sh
> t.sh: 2: Syntax error: Missing '))'
>
> I think arithmetic assignemnt handling have some problems..
> I tried "let a=a+1" instead of above assignement method. And it also
> fail..
>
> $busybox sh t.sh
> let: No such file or directory
> a=0
>
> Astonishingly normal ash also fail to execute that statement.
>
> $ash t.sh
> let: arith: syntax error: "a=a+1"
>
> a=0
>
> Does ash have problems in handling arithmetics?
Current ash support not arithmetics. But open maillist and find
From: Aaron Lehmann <aaronl@vitelus.com> messages.
Solution on inclusion of this code will be accepted by Erik.
--w
vodz
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic