aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-arith
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-arith')
-rw-r--r--shell/hush_test/hush-arith/arith-postinc.right3
-rwxr-xr-xshell/hush_test/hush-arith/arith-postinc.tests4
2 files changed, 7 insertions, 0 deletions
diff --git a/shell/hush_test/hush-arith/arith-postinc.right b/shell/hush_test/hush-arith/arith-postinc.right
index c95ce02bf..5cd4ba6b4 100644
--- a/shell/hush_test/hush-arith/arith-postinc.right
+++ b/shell/hush_test/hush-arith/arith-postinc.right
@@ -2,4 +2,7 @@
21 1 21 1
31 1 31 1
41 1 41 1
56 6
67 7
77 7
5Ok:0 8Ok:0
diff --git a/shell/hush_test/hush-arith/arith-postinc.tests b/shell/hush_test/hush-arith/arith-postinc.tests
index 3fd9bfed5..f2ae778df 100755
--- a/shell/hush_test/hush-arith/arith-postinc.tests
+++ b/shell/hush_test/hush-arith/arith-postinc.tests
@@ -2,4 +2,8 @@ echo 1 $((0++1))
2echo 1 $((0--1)) 2echo 1 $((0--1))
3x=-1; echo 1 $((0-$x)) 3x=-1; echo 1 $((0-$x))
4x=+1; echo 1 $((0+$x)) 4x=+1; echo 1 $((0+$x))
5a=3
6echo 6 $((a+++3)) # a++ + 3
7echo 7 $(((a)+++3)) # a + + + 3
8echo 7 $(((a)+++3)) # a + + + 3
5echo Ok:$? 9echo Ok:$?