title: Passing a variable into rsync
body: <p>I have the following script:</p>
  
  <pre><code> #!/bin/sh
   ...
   rsync -e 'ssh -i "$SSHKeyPath"'
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Warning: Identity file $SSHKeyPath not accessible: No such file or directory.
  </code></pre>
  
  <p>How can I get $SSHKeyGen evaluated before rsync gets called?</p>
  
  <p><strong>UPDATE:</strong>
  fwiw, this is on OSX.</p>