title: What happens if I locally redefined a previously exported variable?
body: <p>Suppose I have a script called foo1.sh that does this:</p>
  
  <pre><code>export FOO=something
  ./foo2.sh
  </code></pre>
  
  <p>And also a foo2.sh written like this:</p>
  
  <pre><code>FOO=otherthings
  echo $FOO
  </code></pre>
  
  <p>Is a local definition allowed to hide previously defined global variable? What will happen to <code>FOO</code> in foo2.sh?</p>