installer doesn't modify root path

Harald Hanche-Olsen hanche at math.ntnu.no
Tue Feb 2 07:33:21 PST 2016


-----Original Message-----
From: Brandon Allbery <allbery.b at gmail.com>
Date: 2 February 2016 at 16:28:50

> The problem with paths.d is that it adds path entries *after* the standard
> ones, whereas users tend to expect that e.g. /opt/local/bin/python
> "overrides" Apple's /usr/bin/python. So MacPorts edits your .bash_profile
> or .profile to prepend /opt/local/bin to $PATH.

Ah. That explains it; thanks. And that doesn’t work for me because I don’t use bash for my login shell, which would be why I made my own hack.

An alternative would have been to modify /etc/paths instead? Or is that too global, or something?

– Harald


More information about the macports-users mailing list