title: Bash environment variable not inherited by node process
body: <p>Inlining the env works <code>SOMETHING=hello node -e &quot;console.log(process.env.SOMETHING)&quot;</code>, but I want <code>node</code> to read the environment variables from the spawning shell.</p>
  <p>The following code will print <code>hello</code> (note that echo can read the environment)</p>
  <pre class="lang-sh prettyprint-override"><code>SOMETHING=hello
  echo $SOMETHING
  </code></pre>
  <p>However the following code prints <code>undefined</code>:</p>
  <pre class="lang-sh prettyprint-override"><code>SOMETHING=hello
  node -e &quot;console.log(process.env.SOMETHING)&quot;
  </code></pre>
  <p>Why can't node read the shell environment? Can I make it read that somehow?</p>