title: Tilde in path doesn't expand to home directory
body: <p>Say I have a folder called <code>Foo</code> located in <code>/home/user/</code> (my <code>/home/user</code> also being represented by <code>~</code>).</p>
  
  <p>I want to have a variable </p>
  
  <p><code>a="~/Foo"</code> and then do </p>
  
  <p><code>cd $a</code></p>
  
  <p>I get
  <code>-bash: cd: ~/Foo: No such file or directory</code></p>
  
  <p>However if I just do <code>cd ~/Foo</code> it works fine. Any clue on how to get this to work?</p>