Ruby problem

Ryan Schmidt ryandesign at macports.org
Wed Mar 14 13:20:19 PDT 2012


On Mar 14, 2012, at 15:01, Phil Dobbin wrote:

> After spending some time with Michal working on this, we've discovered
> that calling sudo either to selfupdate Mac Ports or to install a port,
> $PATH is altered. See gist:
> 
> <https://gist.github.com/2037776>
> 
> The first call to `rvm info` is in a clean shell, just opened. The
> second call is after `sudo port selfupdate` (the gist is pretty
> self-explanatory).
> 
> Opening a new shell reverts the $PATH to how it is written in
> bash_profile.

Ok.

When MacPorts runs, it does of course clear most of the environment variables, including PATH, and set them to known-good values. But this should not affect anything outside of that MacPorts process. I don't know why your shell environment variables are changing in this way.




More information about the macports-users mailing list