title: tilde expansion in environment variable
body: <p>In my .sh file, I have this, <code>cp $file $SOME_PATH</code>, while <code>$SOME_PATH</code> is exported as <code>export SOME_PATH=&quot;~/path/to/path/&quot;</code>. But when I ran this .sh file, I got error message saying like <em>no such &quot;~/path/to/path/&quot; exists.</em>
  I replaced <code>~</code> as <code>$HOME</code>, then the error was gone.
  So what's up here with the tilde?</p>
  <p>Thanks in advance.</p>