summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-arith/arith-postinc.tests
blob: f2ae778df6329b5e73d2db60f32199695427a404 (plain)
1
2
3
4
5
6
7
8
9
echo 1 $((0++1))
echo 1 $((0--1))
x=-1; echo 1 $((0-$x))
x=+1; echo 1 $((0+$x))
a=3
echo 6 $((a+++3))   # a++ + 3
echo 7 $(((a)+++3)) # a + + + 3
echo 7 $(((a)+++3)) # a + + + 3
echo Ok:$?