Opened 18 years ago
Closed 18 years ago
#10039 closed defect (invalid)
DarwinPorts installer puts path in .profile instead of .bash_login
Reported by: | me@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.2 |
Keywords: | Cc: | ||
Port: |
Description
After a default install of DarwinPorts on MacIntel, a .profile is created in the home dir, but .bash_login should have the export PATH statement.
I believe this is default behavior, I don't think I setup anything different to use bash....
SeeBQ-MacBook:~ cbq$ cat .profile # # Your previous .profile (if any) is saved as .profile.dpsaved # Setting the path for DarwinPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Instead, should use .bash_login:
SeeBQ-MacBook:~ cbq$ cat .bash_login export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH"
Let me know if I can commit patch or if this is unnecessary -- could be a documentation thing.
Change History (1)
comment:1 Changed 18 years ago by markd@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The DP installer creates a .profile file with the DP paths, but if someone has another type of profile it may override the .profile. The same effect would be achieved if you removed the .bash_profile. For example, I used to use .bash_profile but I've now switched to .profile because I think its usage is more common and it avoids the problem you've noticed. So this really isn't a bug with DP but a usage issue, but thank you for reporting this because it points up the need to address it in the forthcoming documentation (of which right now there is very little) which we will now do. So I'll mark it invalid for now, but the issue will be addressed.