3 ms·
When would the order of $PATH vary?
by tobylane 11y ago
When would the order of $PATH vary?
- OJFord 11y agoWhen someone's changed it? Which people do _all the time_.
- tobylane 11y agoMine is changed for Heroku, but it only prepends. I've never seen $PATH be rearranged.
- OJFord 11y agoIf you prefix it with something already in there then it's effectively rearranged. You wouldn't do this deliberately, of course, but it happens a lot - people end up with massive PATHs because they blindly prefix when something's gone wrong and it _may_ be the solution.
- cosmotron 11y agoTo give a concrete example, OS X 10.9 (Mavericks) has `/usr/bin` listed before `/usr/local/bin` in `/etc/paths`. This was flipped in 10.10 and up.