title: Editing /etc/paths does not change $PATH
body: <p>I have to add my mysql bin to the $PATH in OSX 10.9.3.
  While searching on google I found the following <a href="http://architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.VlRFsnuFPnQ" rel="nofollow">guide</a> which tells me to add an extra line in the /etc/paths file.</p>
  
  <p>I tried this but my $PATH does not get updated. I tried restarting terminal, loging out and ever rebooting but nothing seems to help.</p>
  
  <p>This is what my /etc/paths looks like:</p>
  
  <pre><code>~ Pantera$ cat /etc/paths
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  /usr/local/bin
  /usr/local/mysql/bin
  /usr/local/mysql-5.7.9-osx10.9-x86_64/bin
  </code></pre>
  
  <p>but when echoing $PATH those last 2 lines do not get added.</p>
  
  <pre><code>~ Pantera$ echo $PATH
  /usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  </code></pre>
  
  <p>What step did I miss?</p>
  
  <p>-- edit --</p>
  
  <p>as asked:</p>
  
  <pre><code>~ Pantera$ /usr/libexec/path_helper
  PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/mysql-5.7.9-osx10.9-x86_64/bin:/usr/local/opt/ruby193/bin:/usr/local/sbin"; export PATH;
  </code></pre>
  
  <p>So it seems the paths are included but still terminal gives me <code>command not found</code> when trying the <code>mysql</code> command.</p>
  
  <p>content of /etc/profile</p>
  
  <pre><code>~ Pantera$ cat /etc/profile
  # System-wide .profile for sh(1)
  
  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
  export MSF_DATABASE_CONFIG=/usr/local/share/metasploit-framework/config/database.yml
  export MSF_DATABASE_CONFIG=/usr/local/share/metasploit-framework/config/database.yml
  </code></pre>
  
  <p>content of ~/.bash_profile</p>
  
  <pre><code>~ Pantera$ cat ~/.bash_profile
  PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  PATH=/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  export MSF_DATABASE_CONFIG=/usr/local/share/metasploit-framework/config/database.yml
  PATH=/usr/local/bin:/usr/local/sbin:/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  PATH=/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/local/opt/ruby193/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  export MSF_DATABASE_CONFIG=/usr/local/share/metasploit-framework/config/database.yml
  </code></pre>