Possible Duplicate:
How to pass an associative array as argument to a function in Bash?
I declare my hash array:
declare -A some_array
And I declare my function:
some_function() {
..
}
How can I send the array as an argument to the function in order to access it?
I know that I can use it as a global variable, but it's not the way out when I have a lot of hash arrays I want to use with some function.
If there is no way to do it, how can I assign to the one hash array value of other?