shell: handle $((NUM++...) like bash does. Closes 10706
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Jan 2018 19:13:33 +0000 (20:13 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Jan 2018 19:13:33 +0000 (20:13 +0100)
commitf19e3c1c6c96e3c709ac732ff70c586521f792d3
treef2b16759f1eae8ac09205f0fb29f822d70610a36
parent675d24aeaff29dbce6dc116a4b7c9f6026ed5069
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>
shell/ash_test/ash-arith/arith-postinc.right [new file with mode: 0644]
shell/ash_test/ash-arith/arith-postinc.tests [new file with mode: 0755]
shell/ash_test/ash-arith/arith.right
shell/ash_test/ash-arith/arith2.sub
shell/hush_test/hush-arith/arith-postinc.right [new file with mode: 0644]
shell/hush_test/hush-arith/arith-postinc.tests [new file with mode: 0755]
shell/hush_test/hush-arith/arith.right
shell/hush_test/hush-arith/arith2.sub
shell/math.c