Zsh Mailing List Archive
Messages sorted by:
Re: path PATH
On 2023-01-28 14:51, Bart Schaefer wrote:
So why not get rid of "line", go back to printing everything to
Heavy duty suggestions. The difference between your level and my
level. If it wasn't presumptuous I'd just ask you to clean it up for me
and then I'd study the changes. Otherwise I'll see if I can understand
and implement. I know my code is amateurish. Ah, for a master class,
where I could have all my code critiqued.
Can't argue with that. OTOH most people conform their expectations to
what's currently available -- basically they only ask for what they
have. But if better information were available, they might very well
come to value and expect that. Not to wander too far off topic but
Windows users think that Windows is 'the universe' and that there's
nothing more or better to even be contemplated. And when you tell them
that there is more and better, they aren't even interested cuz it would
involve expanding their tiny minds.
You're the first person in 30+ years to ask for this, so it's not
surprising that it hasn't been done so far.
I still don't really
grasp why this is helpful to you (especially when what you do with is
it squash it down to a bunch of cryptic one-letter abbreviations).
1 /aWorking/Zsh/Source/Wk 1 $ v path
Stes PATH =
Ats path = ( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin
/usr/sbin /usr/bin ) ...
... because the above is accurate. If that information had been
(easily) available to me, this thread would never have been started.
What is a tied variable? As we see, a scalar is created from an array,
named in all caps, and then exported. As it was:
0 /aWorking/Zsh/Source/Wk 0 $ typeset -p PATH
export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin
/usr/local/bin /usr/sbin /usr/bin )
... and I'm interpreting that as saying that PATH and path are two
different names for the same var. It seems like so long ago :(
The expanded 'full-word' descriptions are of course available, but with
the compressed form one has room for the value too. Once I sort out
your suggestions above I think I'll add a 'full word' switch, but
without the values. Mind I already have that with:
0 /aWorking/Zsh/Source/Wk 0 $ allvars
ALL VARIABLES AND THEIR TYPES:
... work in progress of course.
Messages sorted by: