diff options
author | Chet Ramey <chet.ramey@case.edu> | 2018-09-17 15:10:56 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2018-09-17 15:10:56 -0400 |
commit | 2f5dfe5a18b4670eb4cea32c1c76295eb70a8865 (patch) | |
tree | bf19e42dcaf6c5cf8e0ce0a1c15d56e8f8a6d675 /tests/assoc.right | |
parent | 9a51695bed07d37086c352372ac69d0a30039a6b (diff) | |
download | bash-2f5dfe5a18b4670eb4cea32c1c76295eb70a8865.tar.gz |
bash-5.0-beta releasebash-5.0-beta
Diffstat (limited to 'tests/assoc.right')
-rw-r--r-- | tests/assoc.right | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/assoc.right b/tests/assoc.right index e10636b2..99143f00 100644 --- a/tests/assoc.right +++ b/tests/assoc.right @@ -220,3 +220,12 @@ declare -A a=(["80's"]="Depeche Mode" ) 1+5 declare -A a=(["\$(date >&2)"]="5" ) declare -A myarray=([foo]="bleh" ["foo[bar"]="bleh" ) +./assoc10.sub: line 1: declare: a: cannot convert indexed to associative array +f: declare -a a +./assoc10.sub: line 4: declare: a: cannot convert associative to indexed array +f: declare -A a + +f: declare -a a +main: declare -- a="7" +f: declare -A a +main: declare -- a="42" |