]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/varenv11.sub
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / varenv11.sub
CommitLineData
d233b485
CR
1# couple of errors here
2func()
3{
4 local qux=7
5 local qux=(one two)
6 local what=(zero one two)
7}
8
9readonly qux=42
10func
11
12func2()
13{
14 declare -gA foo=([zero]=zero [one]=one)
15 declare -ga bar=(zero one)
16}
17
18foo=help
19bar=me
20
21func2
22
23declare -p foo bar
24unset foo bar
25func2
26declare -p foo bar
27
28readonly a=7
29a=(1 2 3)
30