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 1:22 PM, Bart Schaefer wrote:
> On Tue, May 31, 2022 at 4:16 AM Zach Riggle <zachriggle@xxxxxxxxx> wrote:
>> Is there any reason that, by default, we do not
>> typeset -aUT PATH path
> The main one is that PATH is imported from the environment and it's
> messy to immediately mung it and push it back there before we've even
> finished the rest of pre-RC-file shell initialization.  Further, it's
> not up to us to decide how that value should be passed through to
> child processes when zsh is used as a launcher by/for some other
> application.

It's also presumptuous to assume that all users want this.
I actually stopped deduplicating PATH/path recently because I want
to know when some application or other is trying to modify it behind
my back without having zsh possibly deduplicate the evidence away.


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