summaryrefslogtreecommitdiffstats
path: root/tests/assoc10.sub
blob: 9eef2cac84e3c323d570bf44add3a0705f528ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
f() { declare -a a; declare -A a; echo -n "$FUNCNAME: " ; declare -p a; }
f

f() { declare -A a; declare -a a; echo -n "$FUNCNAME: " ; declare -p a; }
f

echo 

f() { declare -a a; echo -n "$FUNCNAME: " ; declare -p a; }
a=7
f
echo -n 'main: '; declare -p a

f() { declare -A a; echo -n "$FUNCNAME: " ; declare -p a; }
a=42
f
echo -n 'main: '; declare -p a