Ticket #34841 (new enhancement)
Each MacPorts install adds a $PATH variable even if it already exists; Also, puts it after rvm $PATH variable
|Reported by:||lawrence.trey@…||Owned by:||macports-tickets@…|
|Keywords:||$PATH, .bash_profile, rvm||Cc:|
Even if the $PATH variable exists for a previous install, MacPorts adds another. This won't cause any issues, but it will clutter the ~/.bash_profile script.
Also, the $PATH variable is appended to the ~/.bash_profile script. This means that if rvm has been installed, the default rvm ruby version is overridden by the $PATH variable for MacPorts. So for each new bash session, the native ruby is loaded instead of the default rvm ruby version. There should be some logic to check to see if rvm is being used, and if so, the MacPorts $PATH variable should be added before rvm is loaded.