summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-arith/arith.right
diff options
context:
space:
mode:
authorDenys Vlasenko2021-09-25 22:04:45 +0200
committerDenys Vlasenko2021-09-25 22:04:45 +0200
commitd84a604830a7ee3f8fb5f3908ae0d54513393a20 (patch)
tree3e9dc05e082e41328a84c8eaa3d45f36c2ba5d44 /shell/hush_test/hush-arith/arith.right
parent627821e42b06adfe6bbc6004d8eeb7c35f65120d (diff)
downloadbusybox-d84a604830a7ee3f8fb5f3908ae0d54513393a20.zip
busybox-d84a604830a7ee3f8fb5f3908ae0d54513393a20.tar.gz
shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7)
function old new delta evaluate_string 945 988 +43 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-arith/arith.right')
-rw-r--r--shell/hush_test/hush-arith/arith.right20
1 files changed, 13 insertions, 7 deletions
diff --git a/shell/hush_test/hush-arith/arith.right b/shell/hush_test/hush-arith/arith.right
index c48e468..2c389ca 100644
--- a/shell/hush_test/hush-arith/arith.right
+++ b/shell/hush_test/hush-arith/arith.right
@@ -106,6 +106,7 @@ hush: arithmetic syntax error
3 3
4 4
4 4
+7 7
hush: arithmetic syntax error
hush: arithmetic syntax error
hush: arithmetic syntax error
@@ -114,6 +115,8 @@ hush: arithmetic syntax error
4 4
7 7
-7 -7
+7
+7
hush: arithmetic syntax error
hush: arithmetic syntax error
hush: arithmetic syntax error
@@ -128,11 +131,12 @@ hush: arithmetic syntax error
2 2
-2 -2
1 1
-hush: arithmetic syntax error
-hush: arithmetic syntax error
-hush: arithmetic syntax error
-hush: arithmetic syntax error
-hush: arithmetic syntax error
+7
+7
+7
+7
+7
+7
5 5
1 1
6 6
@@ -141,8 +145,10 @@ hush: arithmetic syntax error
1 1
4 4
0 0
-hush: arithmetic syntax error
-hush: arithmetic syntax error
+-7
+-7
+7
+7
8 12
hush: arithmetic syntax error
42