summaryrefslogtreecommitdiffstats
path: root/tests/assoc3.sub
blob: 9129ef1d5445a609f021686cdb4702140423e1e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
foo()
{
	declare -A afoo=([six]="six" [foo bar]="foo quux")

	declare -A
	recho inside: "${afoo[@]}"
}

declare -A afoo=([main]=outside)
echo outside: "${afoo[@]}"

foo

echo outside 2: "${afoo[@]}"