summaryrefslogtreecommitdiffstats
path: root/tests/array15.sub
blob: b056ccbb750795c0a607c0560df3cfcbdd1ccba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# fixes for make_internal_declare not handling integer attribute for arrays
declare -ai -g foo=(1 2 xx 3)
echo "${foo[@]}"

unset foo
declare -ai -g foo='(1 2 xx 3)'
echo "${foo[@]}"

unset foo
declare -ia -g foo=(1 2 xx 3)
echo "${foo[@]}" 

unset foo
declare -ia -g foo='(1 2 xx 3)'
echo "${foo[@]}" 

unset foo
func()
{
	declare -ai -g foo=(1 2 xx 3)
}

func
echo "${foo[@]}"