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

Re: A way to untie -T vars?



On Mon, Jan 23, 2023 at 3:14 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Jan 22, 2023 at 1:58 AM Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
> >
> > If you wanted to turn this into a library function, you would need to
> > handle more types.
>
> [...] I couldn't find any other parameter types that needed
> handling?

There are a few more things that could be handled by untie().

    () {
      local -hHtUT FOO foo
      print -rC1 -- ${(t)foo}
    }

Here foo is array-local-tag-tied-unique-hide-hideval. I believe it can
be untied and become array-local-tag-unique-hide-hideval (only "tied"
is gone).

Roman.




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