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 8:38 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> maybe there's a graceful way of untying the vars?

There's not.

% typeset +T FOO
typeset: use unset to remove tied variables

> 'm using -U flag to quickly uniquify the scalar, however this method is problematic as the array vars are left over.

I don't follow what this is intended to accomplish?

% typeset -T FOO foo
% foo=(a b a c b e)
% typeset -U FOO
% print $foo
a b c e
%




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