zsh-users
 help / color / mirror / code / Atom feed
From: Kurtis Rader <krader@skepticism.us>
To: Andrew Janke <andrew@apjanke.net>
Cc: Mikael Magnusson <mikachu@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: PSA: Mac OS X El Capitan upgrade might break your $PATH
Date: Fri, 31 Jul 2015 15:49:47 -0700	[thread overview]
Message-ID: <CABx2=D-dZqahDLWVNHtVfw8wiYbYn6SDQa1mZ5endqP_gSq=Og@mail.gmail.com> (raw)
In-Reply-To: <55BBF6BD.9030702@apjanke.net>

[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]

On Fri, Jul 31, 2015 at 3:29 PM, Andrew Janke <andrew@apjanke.net> 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

  reply	other threads:[~2015-07-31 22:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31 16:35 Kurtis Rader
2015-07-31 17:22 ` Bart Schaefer
2015-07-31 18:53 ` Mikael Magnusson
2015-07-31 21:05   ` Andrew Janke
2015-07-31 22:01     ` Kurtis Rader
2015-07-31 22:29       ` Andrew Janke
2015-07-31 22:49         ` Kurtis Rader [this message]
2015-07-31 22:10   ` Kurtis Rader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABx2=D-dZqahDLWVNHtVfw8wiYbYn6SDQa1mZ5endqP_gSq=Og@mail.gmail.com' \
    --to=krader@skepticism.us \
    --cc=andrew@apjanke.net \
    --cc=mikachu@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).