title: Strange bash message when source-ing file
body: <pre><code>ql_get_latest(){
    . "$BASH_SOURCE";
  }
  export -f ql_get_latest;
  </code></pre>
  
  <p>when I run <code>bash</code>, I drop into a shell:</p>
  
  <p>and then when I run <code>ql_get_latest</code> I get:</p>
  
  <blockquote>
  <pre><code>bash: environment: No such file or directory
  </code></pre>
  </blockquote>
  
  <p>anybody know what that's about?</p>