Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why is path not a -aUT type?
- X-seq: zsh-users 27829
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>, "Zach Riggle" <zachriggle@xxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Why is path not a -aUT type?
- Date: Tue, 31 May 2022 13:44:28 -0400
- Archived-at: <https://zsh.org/users/27829>
- Feedback-id: iaa214773:Fastmail
- In-reply-to: <CAH+w=7bGk4FytRXDW_paf15j78B9Ds79AXOZ7bpkAE5JfQ_OBw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5kCYKZSJKw6o-a3Kthn2caUMKZBSPoh7LOUv+hv3k_tjQ@mail.gmail.com> <CAH+w=7bGk4FytRXDW_paf15j78B9Ds79AXOZ7bpkAE5JfQ_OBw@mail.gmail.com>
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.
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author