]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/appendop2.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / appendop2.sub
CommitLineData
ac50fbac
CR
1POSIXLY_CORRECT=1
2x=2
3x+=5 eval printf '"$x "'
4echo "$x"
5
6unset x
7typeset -i x=2
8x+=5 eval printf '"$x "'
9echo "$x"
10
11a=1
12a+=4
13echo $a
14
15# idiotically, ksh93 makes these two cases differ (?)
16a+=5 printenv a
17a+=5 eval printf '"$a "'
18echo $a