Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / tests / appendop2.sub
1 POSIXLY_CORRECT=1
2 x=2
3 x+=5 eval printf '"$x "'
4 echo "$x"
5
6 unset x
7 typeset -i x=2
8 x+=5 eval printf '"$x "'
9 echo "$x"
10
11 a=1
12 a+=4
13 echo $a
14
15 # idiotically, ksh93 makes these two cases differ (?)
16 a+=5 printenv a
17 a+=5 eval printf '"$a "'
18 echo $a