projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git]
/
tests
/
assoc7.sub
1
# problem with bash versions through bash-4.2
2
foo()
3
{
4
declare -A hash
5
declare hash[baz]=bar #bash crashes here
6
7
echo ${hash[@]}
8
}
9
10
foo
11
12
declare -a ary
13
printf -v ary[0] "%b" ""
14
echo "after printf"
15
x="${ary[*]}" # segfaults here
16
echo "after use: $?"