title: Declaring variables in external script
body: <p>I'm tying to write a script which uses variables declared in another script.
  I've tried so far using <code>export</code> to define environmental variables or just using local ones.</p>
  
  <p>So I have my config script:</p>
  
  <pre><code>export DIR_STORAGE="/var/storage/"
  </code></pre>
  
  <p>And script trying to use it in the same directory:</p>
  
  <pre><code>source conf.sh
  echo "DIR="${DIR_STORAGE}
  </code></pre>
  
  <p>but that doesn't seem to work. How can I fix this?</p>