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")
othe
he use of declare -n "reference", to make a copy
of the referenced variable.
Best,
On Sat, Jul 1, 2023 at 10:38 PM Lawrence Velázquez wrote:
> On Sat, Jul 1, 2023, at 3:55 PM, Top Dawn wrote:
> > I believe there is a bug with associative arrays, when once referenced in
> &
>
> This is known as dynamic scoping. There is text in the manual describing
> it.
>
Thank you, this was an interesting read. :)
Best,
On Mon, Jul 3, 2023 at 2:59 PM Chet Ramey wrote:
> On 7/2/23 9:04 AM, Top Dawn wrote:
> >>
> >> What makes you think so