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>
This commit is contained in:
5
shell/ash_test/ash-arith/arith-postinc.tests
Executable file
5
shell/ash_test/ash-arith/arith-postinc.tests
Executable file
@@ -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:$?
|
||||
Reference in New Issue
Block a user