]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/array15.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / array15.sub
1 # fixes for make_internal_declare not handling integer attribute for arrays
2 declare -ai -g foo=(1 2 xx 3)
3 echo "${foo[@]}"
4
5 unset foo
6 declare -ai -g foo='(1 2 xx 3)'
7 echo "${foo[@]}"
8
9 unset foo
10 declare -ia -g foo=(1 2 xx 3)
11 echo "${foo[@]}"
12
13 unset foo
14 declare -ia -g foo='(1 2 xx 3)'
15 echo "${foo[@]}"
16
17 unset foo
18 func()
19 {
20 declare -ai -g foo=(1 2 xx 3)
21 }
22
23 func
24 echo "${foo[@]}"