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:01:00 -0700	[thread overview]
Message-ID: <CABx2=D9g-8k5pJvsJ1CXVbOEfN5M5+BHTvtzRYqJo894HHJBAg@mail.gmail.com> (raw)
In-Reply-To: <55BBE31C.5050909@apjanke.net>

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

On Fri, Jul 31, 2015 at 2:05 PM, Andrew Janke <andrew@apjanke.net> wrote:
>
>
> I suspect the order of entries in path_helper is determined by
> alphabetical ordering of the filenames in /etc/paths.d, where path_helper
> locates the files that come after the default system paths. That "40-" in
> XQuartz looks like an rcdir-style technique to enforce ordering, and I
> think the XQuartz folks know what they're doing with the OS X system stuff.
> (This is on 10.9.)
>

That would be fine if it simply appended those directories in that order to
the existing PATH as the man page claims. But it is clearly using a hash
based ordering and ignoring even the apparent ordering implied by the file
names in /etc/paths.d. From my system:

14:45 macbook  coff  ~  ls /etc/paths.d
40-XQuartz go
14:50 macbook  coff  ~  cat /etc/paths.d/*
/opt/X11/bin
/usr/local/go/bin
14:52 macbook  coff  ~  /usr/libexec/path_helper -s
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Users/krader/bin:/Users/krader/sbin:/Users/krader/symlinks:/usr/local/sbin";
export PATH;
14:52 macbook  coff  ~  echo $PATH
/Users/krader/bin:/Users/krader/sbin:/Users/krader/symlinks:/usr/local/bin:/usr/local/go/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin


One other El Capitan change: the system-supplied zsh (5.0.8) appears to be
> compiled with /usr/local/share/zsh/site-functions in the default $fpath,
> which was not the case for earlier versions of OS X. This is probably
> related to the "rootless" stuff that locks down /usr outside /usr/local/.
>

Yes, I noticed that as well and should have mentioned it as it causes zsh
running as root to complain about "compinit: insecure files" since those
files are managed by HomeBrew and owned by me.

Computer Security: If it isn't getting in your way you're doing it wrong :-)

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

  reply	other threads:[~2015-07-31 22:01 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 [this message]
2015-07-31 22:29       ` Andrew Janke
2015-07-31 22:49         ` Kurtis Rader
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=D9g-8k5pJvsJ1CXVbOEfN5M5+BHTvtzRYqJo894HHJBAg@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).