title: bash - pass script as argument of another script
body: <p>I can't find a similar question on SO.</p>
  
  <p>How can I properly pass a bash script as an argument to another bash script.</p>
  
  <p>For example, let's say I have two scripts that can each accept a number of parameters, I want to pass one script as the argument of the other. Something like:</p>
  
  <pre><code>./script1 (./script2 file1 file2) file3
  </code></pre>
  
  <p>In the above example, script2 merges file1 and file2 together, and echos a new file, however that is irrelevant to the question. I just want to know how I can pass <code>script2</code> as a parameter, i.e. the proper syntax.</p>
  
  <p>If this is not possible, any hint as to how I may circumvent the issue would be appropriate.</p>