title: Pipe output to environment variable export command
body: <p>I'm trying to set a git hash value into an environment variable, i thought it would be as simple as doing this:</p>
  
  <pre><code>git log --oneline -1 | export GIT_HASH=$1
  </code></pre>
  
  <p>But the <code>$1</code> doesn't contain anything. What am I doing wrong?</p>