From f19e3c1c6c96e3c709ac732ff70c586521f792d3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 28 Jan 2018 20:13:33 +0100 Subject: shell: handle $((NUM++...) like bash does. Closes 10706 function old new delta evaluate_string 680 729 +49 Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-arith/arith-postinc.tests | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 shell/hush_test/hush-arith/arith-postinc.tests (limited to 'shell/hush_test/hush-arith/arith-postinc.tests') diff --git a/shell/hush_test/hush-arith/arith-postinc.tests b/shell/hush_test/hush-arith/arith-postinc.tests new file mode 100755 index 000000000..3fd9bfed5 --- /dev/null +++ b/shell/hush_test/hush-arith/arith-postinc.tests @@ -0,0 +1,5 @@ +echo 1 $((0++1)) +echo 1 $((0--1)) +x=-1; echo 1 $((0-$x)) +x=+1; echo 1 $((0+$x)) +echo Ok:$? -- cgit v1.2.3