]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/errors6.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / errors6.sub
1 # problems with non-fatal expansion errors through bash-4.3
2 : ${THIS_SH:=./bash}
3
4 ${THIS_SH} -c 'echo ${x!y} second
5 echo after 1: $?' 2>/dev/null
6
7 ${THIS_SH} -c 'echo ${#+} second
8 echo after 2: $?' 2>/dev/null
9
10 ${THIS_SH} -c 'echo ${#foo%} second
11 echo after 3: $?' 2>/dev/null
12
13 ${THIS_SH} -c 'b[0]=4 ; echo ${b[ ]}
14 echo array after 1: $?' 2>/dev/null
15 ${THIS_SH} -c 'typeset -A v ; v["0"]=one ; echo ${v[ ]}
16 echo array after 2: $?' 2>/dev/null
17
18 echo ${-3}
19 x=-3; echo ${!x}
20 echo after indir: $?