commit | f19e3c1c6c96e3c709ac732ff70c586521f792d3 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun Jan 28 20:13:33 2018 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun Jan 28 20:13:33 2018 +0100 |
tree | f2b16759f1eae8ac09205f0fb29f822d70610a36 | |
parent | 675d24aeaff29dbce6dc116a4b7c9f6026ed5069 [diff] [blame] |
shell: handle $((NUM++...) like bash does. Closes 10706 function old new delta evaluate_string 680 729 +49 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/ash_test/ash-arith/arith-postinc.tests b/shell/ash_test/ash-arith/arith-postinc.tests new file mode 100755 index 0000000..3fd9bfe --- /dev/null +++ b/shell/ash_test/ash-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:$?