Changes between Initial Version and Version 1 of Ticket #47706
- Timestamp:
- May 11, 2015, 9:14:59 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47706
- Property Keywords PATH postflight.in removed
-
Ticket #47706 – Description
initial v1 1 When sourcing CONF_FILE (in this case ~/.profile) with source ~/.profile, my PATH variable expands indefinitely, since there is no check if BINPATH is already in PATH ( https://trac.macports.org/browser/trunk/base/portmgr/dmg/postflight.in#L243).1 When sourcing CONF_FILE (in this case ~/.profile) with source ~/.profile, my PATH variable expands indefinitely, since there is no check if BINPATH is already in PATH ([[source:trunk/base/portmgr/dmg/postflight.in#L243]]). 2 2 3 3 My ~/.profile looks like this: … … 9 9 }}} 10 10 11 The solution is to check in https://trac.macports.org/browser/trunk/base/portmgr/dmg/postflight.in#L103 if BINPATH (Part of ${2}) is already in PATH (\$ + ${1}). If so, do not export it again.11 The solution is to check in source:trunk/base/portmgr/dmg/postflight.in#L103 if BINPATH (Part of $!{2}) is already in PATH (\$ + $!{1}). If so, do not export it again. 12 12 13 13 I fixed it in my ~/.profile with this modification (bash):