title: "/bin/bash cd ~" results in "/bin/bash: cd: No such file or directory", why?
body: <p>The question is in the title. I could not find anything on google, so im hoping someone here can explain this to me.</p>
  
  <p>I am using debian 6.0.5 and the shell assigned to the executing user in the /etc/passwd file is /bin/bash</p>
  
  <p>So, simply writing <code>cd ~</code> works and brings me to the users home directory.</p>
  
  <p><code>test -d "~/some_dir"</code> returns false in an if statement ( some_dir exsits )</p>
  
  <p>Edit:
  Sorry I should've been more clear as of why I was writing <code>/bin/bash cd ~</code> instead of <code>cd ~</code>: I am writing a bash script with <code>#!/bin/bash</code> and the above mentioned if statement ends up in the false clause.</p>