title: How to exec bash script w/o exiting shell
body: <p>I want to execute a bash script in the current shell, not a subshell/subprocess. I believe using <code>exec</code> allows you to do that.
  But if I run:</p>
  
  <pre><code>exec ./my_script.sh
  </code></pre>
  
  <p>the shell will exit and it will say "process completed". Is there a way to execute a script in the same shell somehow w/o exiting the process.</p>
  
  <p>note the only thing my_script.sh does is:</p>
  
  <pre><code>export foo=bar
  </code></pre>
  
  <p>but if there was some error in my script, it didn't appear in the console.</p>