Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: path PATH
On Sat, Jan 21, 2023 at 4:18 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2023-01-20 22:11, Lawrence Velázquez wrote:
> >
> >> ... so it is unique.
> > No, that just means that PATH is the only global scalar that has
> > been tied and exported. If you tie and export additional ones
> > they'll show up too.
PATH isn't special. Here:
% export -T FOO foo=( bar baz )
% typeset -p FOO
export -T FOO foo=( bar baz )
The output of `typeset -p` is a command that you can evaluate to set
the parameter to its current value.
Do you see that everything works as intended? If not, what do you
think `typeset -p FOO` should output here? Keep in mind that it must
be a command that you can evaluate to set the parameter to its current
value.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author