title: Trying to run a bash script with source from another script running as source
body: <p>I have a bash script that will eventually call another bash script. Each script must be run with "source". For simplicity's sake, I've summarized the problem points below</p>
  
  <p><strong>script1.sh</strong>:</p>
  
  <pre><code>source script2.sh
  </code></pre>
  
  <p><strong>script2.sh</strong>:</p>
  
  <pre><code>export someVar=something
  </code></pre>
  
  <p>Run everything with:</p>
  
  <pre><code>source script1.sh arg1 arg2
  </code></pre>
  
  <p>The issue is when <em>script2.sh</em> is run from <em>script1.sh</em>, the arguments are also copied, so <em>script2.sh</em> is actually run as:</p>
  
  <pre><code>source script2.sh arg1 arg2
  </code></pre>
  
  <p><em>script2.sh</em> fails because those arguments are provided. Is there any way that I can run script2 from script1 without passing those <em>args</em>? Running script2 without the source command is not an option, unless there is another way for it to be run and let the variables persist. I also can not modify script2 in any way.</p>