title: Aliases in .bash_profile not working properly
body: <p>I have been trying to alter the .bash_profile that is in my root directory, but have been running into some problems. I am on OS X, Yosemite, on a Macbook Pro. As I understand it, the .bash_profile file contains the script that is called automatically whenever the Terminal app is opened and the bash shell starts. 
  This is what I currently have written in that file: </p>
  
  <pre><code>PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
  export PATH
  </code></pre>
  
  <p>This works perfectly fine. However, I want to add an alias (right underneath the above two lines) as follows:</p>
  
  <pre><code>alias test='cd ..'
  </code></pre>
  
  <p>However, when I save this and start up the Terminal, I get the following message:</p>
  
  <pre><code>-bash: alias: ..": not found
  </code></pre>
  
  <p>Replacing the single quotes with double quotes doesn't help, nor does taking them away altogether. Curiously however, the following alias works:</p>
  
  <pre><code>alias c=clear
  </code></pre>
  
  <p>When I type c into the terminal, it clear the screen, as you would expect. However, if I instead entered this line with quotes in the bash profile as:</p>
  
  <pre><code>alias c='clear'
  </code></pre>
  
  <p>Then I will get the following whenever I enter c into the Terminal:</p>
  
  <pre><code>-bash: 'clear': command not found
  </code></pre>
  
  <p>Note that I do not get an error message on startup for this alias.</p>
  
  <p>What am I doing wrong? Is there a setting I need to change somewhere to get aliases to work properly? I have seen previous examples of aliases and they simply do not work for me.</p>