title: Bourne shell: send arguments $2 to $N to variadic function?
body: <p>Google has finally failed me. I cannot seem to find how to do this in Bourne shell scripting:</p>
  
  <p>I am writing a shell script to handle all of my testing for a project. I've set up functions for each task that this script could do (build, run, clean, etc), and would like to pass any additional command-line parameters (besides the command itself) onto the desired function.</p>
  
  <p>Example:</p>
  
  <p><code>./test.sh build -j</code> should pass <code>-j</code> into the <code>build</code> function.</p>
  
  <p>A pseudo-code version of this logic would look like:</p>
  
  <pre><code>function build() {
     make $*
  }
  
  if [ $1 == 'build' ]; then
     build $2 -&gt; $N
  fi
  </code></pre>
  
  <p>How can I accomplish this?</p>