title: Command doesn't work in script, but works in shell
body: <p>I'm writing a script for using SSH "profiles", <strong>~/scripts/ssh-profiled.sh</strong></p>
  
  <pre><code>PROFILE=`cat ~/script/ssh-profiles/$1`
  echo [ssh $PROFILE]
  ssh $PROFILE
  </code></pre>
  
  <p><strong>~/scripts/ssh-profiles/tummi</strong></p>
  
  <pre><code>-i ~/Dropbox/security/key-nopass/key-nopass.pvt bart@example.com
  </code></pre>
  
  <p>When I run the script, it fails:</p>
  
  <pre><code>bart@bart-laptop:~$ script/ssh-profiled.sh tummi
  [ssh -i ~/Dropbox/security/key-nopass/key-nopass.pvt bart@example.com]
  Warning: Identity file ~/Dropbox/security/key-nopass/key-nopass.pvt not accessible: No such file or directory.
  bart@example.com's password:
  </code></pre>
  
  <p>But this works:</p>
  
  <pre><code>bart@bart-laptop:~$ ssh -i ~/Dropbox/security/key-nopass/key-nopass.pvt bart@example.com
  Linux tummi 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
  Ubuntu 10.04.1 LTS
  
  Welcome to the Ubuntu Server!
  </code></pre>
  
  <p>Is there an error/gotcha in my script?</p>