Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG & tentative PATCH] Invalid call to upscope in createparam
On Mon, Jun 2, 2025 at 2:53 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Yes, I think that's actually an inconsistency introduced somewhere
> along the way. At some point it became the case that (where var1 and
> var2 do not exist):
> typeset -n ref1=var1 # sets base to global scope
> typeset -n ref2 # sets base to locallevel
> ref2=var2 # does not change base
> I think the first was meant to work like the second, not that the
> second was meant to work like the first. None of the tests except
> foo=zz tries that ref1=var1 case where var1 hasn't already been
> declared.
Before you run off and write a treatise on your objections to or any
further implementation inconsistencies you've found with this, because
I know there are some, please allow me to finish reconstructing some
of the basis here. I may be able to resolve the question to
everyone's satisfaction without subjecting the rest of the list to
another lengthy dispute.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author