Hello there,
I believe there is a bug with associative arrays, when once referenced in
another function through the -n option, both the new reference name and the
old one are made available.
```bash
#!/bin/bash
function my_function(){
declare -A my_array
my_array=(["one"]="one")
other_function "my_array"
}
function other_function(){
declare -n other_array="${1-}"
echo "${other_array["one"]}"
echo "${my_array["one"]}"
}
my_function
```
will output :
```bash
one
one
```
I believe this to be a bug. I tried to reference the same name through
`declare -n my_array="${1-}"` but then get circular reference errors.
Best,