title: BASH: Is "export" needed, when setting a variable in .bashrc?
body: <p>I wonder if there is a need to use "export" when setting a variable in .bashrc.</p>
  
  <p>In my tests editing .bashrc there was no difference between</p>
  
  <pre><code>foo=bar
  </code></pre>
  
  <p>and</p>
  
  <pre><code>export foo=bar
  </code></pre>
  
  <p>In both cases, after login "echo $foo" outputs "bar".</p>
  
  <p>I am using Debian Squeeze, if that matters.</p>
  
  <p>Thank you guys in advance.</p>