]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/array4.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / array4.sub
1 # compound assignment parsing problems in bash-3.1-release
2 func()
3 {
4 local -a x=() y=()
5 }
6
7 a=() b=()
8 eval foo=()
9 eval foo=() bar=() qux=( "bash" )
10
11 foo=( "bash" )
12 eval foo=( "bash" )
13 eval bar=( "bash" ) bax=( "bash" )
14
15 let a=(5 + 3) b=(4 + 7)
16 echo $a $b
17
18 typeset -i a b
19 a=(5+3) b=(4+7)
20 echo $a $b
21
22 let a=(4*3)/2
23 echo $a
24 a=(4*3)/2
25 echo $a
26
27 LNAME=nordholz
28 echo ${LNAME}
29 echo ${#LNAME}
30
31 echo ${#LNAME[$(( 0 ))]}
32 echo ${#LNAME[$(( 0+0 ))]}