projects
/
external
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initialize Tizen 2.3
[external/bash.git]
/
tests
/
assoc5.sub
1
declare -A myarray
2
3
# this needs fixes to skipsubscript
4
myarray["a]a"]="abc"
5
6
echo ${myarray["a]a"]}
7
8
myarray[$(echo ])]=def
9
10
echo ${myarray[']']}
11
echo ${myarray[\]]}
12
13
declare myarray["foo[bar"]=bleh
14
myarray["foo"]=bleh
15
16
echo "${myarray[@]}"
17
18
bar='a]=test1;#a'
19
myarray[$bar]=123
20
21
set | grep ^myarray=
22
echo ${myarray[a]}
23
24
echo "${myarray['a]=test1;#a']}"
25
myarray['a]=test2;#a']="def"
26
27
set | grep ^myarray=