assoc7.sub 262 B

1234567891011121314151617
  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. echo ${hash[@]}
  7. }
  8. foo
  9. declare -a ary
  10. printf -v ary[0] "%b" ""
  11. echo "after printf"
  12. x="${ary[*]}" # segfaults here
  13. echo "after use: $?"