title: How to print / echo environment variables?
body: <p>How do I print the environment variable just being set?</p>
  
  <pre><code>NAME=sam echo "$NAME" # empty
  </code></pre>
  
  <p>You can see here using <code>eval</code> it works. Is this the way?</p>
  
  <pre><code>NAME=sam eval 'echo $NAME' # =&gt; sam
  </code></pre>