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

Re: path PATH




On 2023-01-27 12:45, Bart Schaefer wrote:
On Fri, Jan 27, 2023 at 9:51 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
t: The variable is 'tied' to another variable (see docs: 'typeset -T').

... edits and corrections most welcome.  Have I missed any?
You'll probably never see it, but "typeset -t" puts a "tag" on the
variable.  This is completely meaningless to anything/anyone except
program(mer)s using "typeset -t" and I have no recollection of the
use-case for which it was added.

There's always one more thing.  As you say, it sounds pretty marginal.  Anyway I'm happy that:

0 /aWorking/Zsh/Source/Wk 0 $ typeset -p path
typeset -aT PATH path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin )

is now:

1 /aWorking/Zsh/Source/Wk 0 $ v path

Stes  PATH = .:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin Ats   path = ( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin ) ...

... so all the confusions and incorrect assumptions the former lead me to are now clarified.  Thanks for the help, it was a trail of tears.  More work un-learning the wrong stuff than learning the right stuff.








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