Merge branch 'maint'

This commit is contained in:
Allan McRae 2015-01-12 15:23:30 +10:00
commit 018fa2b48c
1 changed files with 3 additions and 0 deletions

View File

@ -2467,6 +2467,9 @@ array_build() {
# Build an array of the indicies of the source array.
eval "keys=(\"\${!$2[@]}\")"
# Clear the destination array
eval "$dest=()"
# Read values indirectly via their index. This approach gives us support
# for associative arrays, sparse arrays, and empty strings as elements.
for i in "${keys[@]}"; do