title: Expanding wildcard in echo to file
body: <p>Say I have the following in Bash:</p>
  <pre><code>FOO=/a/c*/d/
  echo PATH=${FOO}:${PATH} &gt;&gt; .env
  </code></pre>
  <p>When I inspect the contents of the file <code>.env</code> the path still contains the wildcard. How can I ensure that the wildcard is expanded to the path, assuming there is only one match, so that the wildcard does not exist in the file when echoed?</p>