summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-arith/arith2.sub
diff options
context:
space:
mode:
authorDenys Vlasenko2021-09-25 22:25:19 +0200
committerDenys Vlasenko2021-09-25 22:35:17 +0200
commit62e433131b289ea90e465cf0c5f78c8c226fc692 (patch)
tree2279c66136d95f1b77484aec147608fe458e8095 /shell/hush_test/hush-arith/arith2.sub
parentd84a604830a7ee3f8fb5f3908ae0d54513393a20 (diff)
downloadbusybox-62e433131b289ea90e465cf0c5f78c8c226fc692.zip
busybox-62e433131b289ea90e465cf0c5f78c8c226fc692.tar.gz
shell: enable more tests which are passing now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-arith/arith2.sub')
-rwxr-xr-xshell/hush_test/hush-arith/arith2.sub14
1 files changed, 5 insertions, 9 deletions
diff --git a/shell/hush_test/hush-arith/arith2.sub b/shell/hush_test/hush-arith/arith2.sub
index 29f9471..8d79181 100755
--- a/shell/hush_test/hush-arith/arith2.sub
+++ b/shell/hush_test/hush-arith/arith2.sub
@@ -46,12 +46,8 @@ echo $(( ---7 ))
echo $(( ++7 ))
( echo $(( ++ + 7 )) )
-# bash 3.2: -7
-#ash# echo -7 $(( ++-7 ))
-# bash 3.2: -7
-#ash# echo -7 $(( ++ - 7 ))
-
-# bash 3.2: 7
-#ash# echo 7 $(( +--7 ))
-# bash 3.2: 7
-#ash# echo 7 $(( -- + 7 ))
+echo -7 $(( ++-7 ))
+echo -7 $(( ++ - 7 ))
+
+echo 7 $(( +--7 ))
+echo 7 $(( -- + 7 ))