ac50fbac CR |
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: $?" |