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

Re: A way to untie -T vars?



On Sat, Jan 21, 2023 at 9:15 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
>     unset2() {
>       local _"$1"
>       typeset -gT _"$1" "$1"
>     }

Hm, yes, it's a bit weird to tie two variables that are in different
scopes.  This is vaguely related to the fix I applied to zsh/gdbm a
few months back to prevent local ztie from messing with the scope of a
database handle.

It ought to be possible to check for this and make that "typeset -gT"
into an error, if that's what we want to do.




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