/etc/profile does not appear to run
<p>I'm on OS X and according to man bash /etc/profile is the system wide configuration for the bash shell.</p>

<p>For <strong>testing</strong> purposes I opened this file up :</p>

<pre><code>open_profile(){
    sudo chmod 777 /etc/profile
}
</code></pre>

<p>and added an echo so that I can see if it is actually running.</p>

<p>It is not:</p>

<pre><code># System-wide .profile for sh(1)

echo "test_global"

if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] &amp;&amp; . /etc/bashrc
fi
</code></pre>

<p>I do not see the echo when I open up a bash shell.</p>