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