Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why is path not a -aUT type?
On Tue, May 31, 2022 at 06:16:17AM -0500, Zach Riggle wrote:
> It seems to me that having duplicate entries in $PATH / $path is a bit
> silly, and makes some things hard to do.
>
> Is there any reason that, by default, we do not
>
> typeset -aUT PATH path
>
>
> Automatically?
>
> *Zach Riggle*
PATH is no array, so "typeset -a" feels wrong.
PATH and path are already tied by default, no?
As for "typeset -U", that's useful to have, but I can definitely see
that one may want to e.g. temporarily add a directory path at the start
of PATH/path and then remove it again without disturbing the old values
of the variables.
--
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden
.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author