title: Delete positional parameters in Bash?
body: <p>You can skip positional parameters with <code>shift</code> but can you delete positional parameters by passing the position?</p>
  
  <pre><code>x(){ CODE; echo "$@"; }; x 1 2 3 4 5 6 7 8
  &gt; 1 2 4 5 6 7 8
  </code></pre>
  
  <p>I would like to add CODE to <code>x()</code> to delete positional parameter 3. I don't want to do <code>echo "${@:1:2} ${@:4:8}"</code>. After running CODE, <code>$@</code> should only contain "1 2 4 5 6 7 8".</p>