Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Do I really need to export path in .profile?

Following models provided in various places, currently in my ~/.profile where I have many lines that append or prepend directories to PATH, I also have corresponding export commands, e.g.:


export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATH

PATH="${PATH}:/Library/Frameworks/Python.framework/Versions/3.3/bin"

export PATH


As I undertand things, the purpose of export is to make a setting available to subprocesses. And my understanding is that PATH is an "environment variable" in the technical sense of the term, that is, it is automatically exported.


So with OS X, is any purpose actually served by having those explicit exports in ~/.profile?


Same question if I moved all the path settings into ~/.bash_profile .

iMac, OS X Mavericks (10.9), 3.4GHz Corei7, 16GB, SSD + 2T HD

Posted on Feb 9, 2014 2:49 PM

Reply

There are no replies.

Do I really need to export path in .profile?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.