diff options
author | Denys Vlasenko | 2018-01-28 20:13:33 +0100 |
---|---|---|
committer | Denys Vlasenko | 2018-01-28 20:13:33 +0100 |
commit | f19e3c1c6c96e3c709ac732ff70c586521f792d3 (patch) | |
tree | f2b16759f1eae8ac09205f0fb29f822d70610a36 /shell/hush_test/hush-arith/arith-postinc.tests | |
parent | 675d24aeaff29dbce6dc116a4b7c9f6026ed5069 (diff) | |
download | busybox-f19e3c1c6c96e3c709ac732ff70c586521f792d3.zip busybox-f19e3c1c6c96e3c709ac732ff70c586521f792d3.tar.gz |
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>
Diffstat (limited to 'shell/hush_test/hush-arith/arith-postinc.tests')
-rwxr-xr-x | shell/hush_test/hush-arith/arith-postinc.tests | 5 |
1 files changed, 5 insertions, 0 deletions
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 0000000..3fd9bfe --- /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:$? |