help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Walkaround for the limitation of declare -n


From: Peng Yu
Subject: Re: [Help-bash] Walkaround for the limitation of declare -n
Date: Sat, 9 Feb 2019 22:18:54 -0600

On Wed, Dec 12, 2018 at 10:56 PM Peng Yu <address@hidden> wrote:
>
> Hi,
>
> https://mywiki.wooledge.org/BashFAQ/048
> "The problem with bash's name references"
>
> $ foo() { declare -n v=$1; }
> $ bar() { declare -n v=$1; foo v; }
> $ bar v
> bash: warning: v: circular name reference

I just want to make sure. Has this been fixed in any branches of the
bash source code? I tried bash 5. The problem is still not fixed.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]