summaryrefslogtreecommitdiffstats
path: root/tests/appendop2.sub
blob: 4225ba3f4940b0f7aa79ffbfe150cc70f3458c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
POSIXLY_CORRECT=1
x=2
x+=5 eval printf '"$x "'
echo "$x"

unset x
typeset -i x=2
x+=5 eval printf '"$x "'
echo "$x"

a=1
a+=4
echo $a

# idiotically, ksh93 makes these two cases differ (?)
a+=5 printenv a
a+=5 eval printf '"$a "'
echo $a