mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-26 23:33:08 +02:00
31 lines
308 B
Plaintext
31 lines
308 B
Plaintext
# couple of errors here
|
|
func()
|
|
{
|
|
local qux=7
|
|
local qux=(one two)
|
|
local what=(zero one two)
|
|
}
|
|
|
|
readonly qux=42
|
|
func
|
|
|
|
func2()
|
|
{
|
|
declare -gA foo=([zero]=zero [one]=one)
|
|
declare -ga bar=(zero one)
|
|
}
|
|
|
|
foo=help
|
|
bar=me
|
|
|
|
func2
|
|
|
|
declare -p foo bar
|
|
unset foo bar
|
|
func2
|
|
declare -p foo bar
|
|
|
|
readonly a=7
|
|
a=(1 2 3)
|
|
|