Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on mac os x 10.6 aka snow leopard and I seen when I do echo $PATH some strange characters are appended to it. My path looks like:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:â\200\234\200\235

I've tried to see where it comes from but now I'm starting to question my Mac OS X knowledge more. I removed the export path stmts from ~/.bashrc and ~/.bash_profile. logged out, logged in no change. I moved the contents from `/etc/paths.d away. still same path. (exclude path_helper) I commented out the contents of /etc/profile logged out restart computer, still same characters.

I'm getting a bit worried that something evil is residing on my machine, or am I overlooking something?

BTW there are 2 user accounts on my mac, and the other is normal. Hope somebody can shine a light.

share|improve this question
    
You also need to look in ~/MacOSX/environment.plist and see if there is a <key>PATH</key> entry –  Mark Feb 12 '11 at 12:19
    
Thanks for your reply, I would have voted it if it were answered :-). I just restarted again, after completely removing that file, and I wanted tot add that this did reset my PATH parameter. Also apparently the file /etc/paths is also read. Question remains how to open the .MacOSX/environment.plit with property list editor as I cannot find a way to select a directory starting with a . (as in .MacOSX) –  dr jerry Feb 12 '11 at 12:34

1 Answer 1

up vote 2 down vote accepted

Paths are also read for apps launched from the Finder or desktop from ~/MacOSX/environment.plist.

I think /etc/paths is read only if ~/.bashrc is not there

To see hidden files from a Snow Leopard file open dialog hit Shift-Cmd-.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.