From d84a604830a7ee3f8fb5f3908ae0d54513393a20 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 25 Sep 2021 22:04:45 +0200 Subject: 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 --- shell/ash_test/ash-arith/arith.right | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'shell/ash_test/ash-arith/arith.right') diff --git a/shell/ash_test/ash-arith/arith.right b/shell/ash_test/ash-arith/arith.right index 6936f12..99ef825 100644 --- a/shell/ash_test/ash-arith/arith.right +++ b/shell/ash_test/ash-arith/arith.right @@ -97,6 +97,7 @@ ghi 3 3 4 4 4 4 +7 7 ./arith.tests: line 257: arithmetic syntax error ./arith.tests: line 259: arithmetic syntax error ./arith.tests: line 260: arithmetic syntax error @@ -105,6 +106,8 @@ ghi 4 4 7 7 -7 -7 +7 +7 ./arith1.sub: line 2: arithmetic syntax error ./arith1.sub: line 3: arithmetic syntax error ./arith1.sub: line 4: arithmetic syntax error @@ -119,11 +122,12 @@ ghi 2 2 -2 -2 1 1 -./arith1.sub: line 37: arithmetic syntax error -./arith2.sub: line 2: arithmetic syntax error -./arith2.sub: line 3: arithmetic syntax error -./arith2.sub: line 4: arithmetic syntax error -./arith2.sub: line 5: arithmetic syntax error +7 +7 +7 +7 +7 +7 5 5 1 1 6 6 @@ -132,8 +136,10 @@ ghi 1 1 4 4 0 0 -./arith2.sub: line 42: arithmetic syntax error -./arith2.sub: line 47: arithmetic syntax error +-7 +-7 +7 +7 8 12 ./arith.tests: line 290: arithmetic syntax error 42 -- cgit v1.1