Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Warning about failed assignments to references to not yet defined variables



On Wed, May 21, 2025 at 1:39 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> The assignment ref=outer is supposed to create a global variable named var but it can't because there is a local variable with the same name. Shouldn't this print a warning?

I've been considering this in context of your message "Bogus self
reference" (workers/53649) so will address it when I finish my
response to that one.

> The problem can happen when the user calls a library function

This would imply a somewhat poorly written library function, or at
least a poorly documented one.




Messages sorted by: Reverse Date, Date, Thread, Author