title: Bash profile alias giving unexpected EOF and syntax errors
body: <p>I'm trying to add the following alias in my .bash_profile in TextEdit in Mavericks (10.9.3) on a Mac Mini:</p>
  
  <pre><code>alias proj="cd ~/documents/google\ drive/web/projects"
  </code></pre>
  
  <p>I get the following errors:</p>
  
  <pre><code>line 1: unexpected EOF while looking for matching '"'
  
  line 2: syntax error: unexpected end of file
  </code></pre>
  
  <p>bash gives: </p>
  
  <pre><code>alias proj='"cd'
  </code></pre>
  
  <p>However, if I copy &amp; paste the exact same line from Notepad in my Windows VM into TextEdit it works.. </p>
  
  <p>bash now gives as expected: </p>
  
  <pre><code>alias proj='cd ~/documents/google\ drive/web/projects'
  </code></pre>
  
  <p>I've tried the following with no success:</p>
  
  <ul>
  <li><p>Different paths with and without spaces</p></li>
  <li><p>Swapped the Dell PC keyboard I was using for a Mac</p></li>
  <li><p>Changed language to British English from British</p></li>
  <li><p>Installed all updates</p></li>
  </ul>
  
  <p>I can get round it using copy &amp; paste as above, but would really like to get to the bottom of it. Any ideas much appreciated, thanks.</p>