Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PSA: Mac OS X El Capitan upgrade might break your $PATH
- X-seq: zsh-users 20380
- From: Kurtis Rader <krader@xxxxxxxxxxxxx>
- To: Andrew Janke <andrew@xxxxxxxxxxx>
- Subject: Re: PSA: Mac OS X El Capitan upgrade might break your $PATH
- Date: Fri, 31 Jul 2015 15:49:47 -0700
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <55BBF6BD.9030702@apjanke.net>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABx2=D-TXjJpoN8pQOR6nswM4J3xxwgm8aoFn8ZyE-o2DZw9pQ@mail.gmail.com> <CAHYJk3S-W_FYWEidfhC_g62=8B3hRLoyGnnOQsJcy4FPp9Ct5g@mail.gmail.com> <55BBE31C.5050909@apjanke.net> <CABx2=D9g-8k5pJvsJ1CXVbOEfN5M5+BHTvtzRYqJo894HHJBAg@mail.gmail.com> <55BBF6BD.9030702@apjanke.net>
On Fri, Jul 31, 2015 at 3:29 PM, Andrew Janke <andrew@xxxxxxxxxxx> wrote:
> That path_helper output doesn't look random or hash based. That looks like:
>
[snip]
> The man page could stand to be more thorough and clear, but I don't think
> it's randomly rearranging your path. And the `man path_helper` page does
> indicate where the default paths come from, though it's buried a few
> paragraphs down.
>
Yes, your analysis appears correct. In all likelihood the program is
working as intended. Clearly the man page does not match the actual
behavior as the very first sentence says "...appends their contents to the
PATH...". The man page says nothing at all about the sequence the
directories appear being changed. And while the man page goes on to explain
that the "default PATH ... values are obtained from /etc/paths..." that is
misleading. The use of the word "default" implies to me that if the current
PATH already contains those directories the existing PATH will be used as
is.
Yet I think we can all agree that the man page is crap and the design of
path_helper is crap :-)
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author