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

Re: [BUG] zsh/param/private scoping error



Marlon Richert wrote on Wed, Sep 01, 2021 at 14:49:58 +0300:
> This is not how one would expect private variables to behave. Inside
> the inner function, the private variable should be completely out of
> scope and the `tst=` statement should result in the creation of a
> global variable.

Makes sense to me.  A regression test (one with the 'F' flag) would be
welcome, if you've got spare tuits.




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