[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable with the same name can't be declared in the local scope if
Re: Variable with the same name can't be declared in the local scope if the global one is declared read-only
Sun, 15 Nov 2020 05:40:32 -0500
> On Nov 15, 2020, at 4:20 AM, 林博仁Buo-ren, Lin <firstname.lastname@example.org> wrote:
> ## Current behavior
> $ LANG=C ./depict-the-variable-shadowing-phenomenon.bash
> ./depict-the-variable-shadowing-phenomenon.bash: line 11:
> local: variable_shadowed: readonly variable
> Refer the "Descripton" section.
> I suggest that bash shouldn't trigger the error, if the
> variable to be set is a `different` variable
> instantiated by the variable shadowing mechanism.
This behavior has been discussed previously and is not considered a bug, as far
as I can tell.
Sent from my iPhone