title: Unable to source profile: export: Command not found
body: <p>I encounter a problem when trying to source the /etc/profile in Linux.
  I run the following command in Linux command line as root:</p>
  
  <pre><code># vi /etc/profile
  </code></pre>
  
  <p>Add two lines to profile:</p>
  
  <pre><code>export JAVA_HOME=/usr/java/jdk1.7.0_25/bin/java
  export PATH=$PATH:/usr/java/jdk1.7.0_25/bin
  </code></pre>
  
  <p>save profile.</p>
  
  <pre><code># source /etc/profile
  
  Error:
  PATH=/bin:/usr/bin:/usr/dev_infra/platform/bin:/usr/dev_infra/generic/bin:/usr/local/bin: Command not found.
  export: Command not found.
  Badly placed ()'s.
  </code></pre>
  
  <p>I don't know why this "command not found" error occurs.
  The existing workarounds seem not helpful to my issue.</p>
  
  <p>Thanks</p>