> For straight debugging output, it's probably ok. You might have to > play with it a little if you want to make it into something you can > eval from a command substitution to copy an array.
Just another thought, declare -p aa is nice for debugging arrays. help declare ... -p display the attributes and value of each NAME ...