[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] bug#1196: ash applet doens't handle arithmetic properly..
From: HeeChul Yun <hcyun () etri ! re ! kr>
Date: 2001-07-27 4:45:02
[Download RAW message or body]
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?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic