title: How to access command line arguments of the caller inside a function?
body: <p>I'm attempting to write a function in bash that will access the scripts command line arguments, but they are replaced with the positional arguments to the function. Is there any way for the function to access the command line arguments if they aren't passed in explicitly?</p>
  
  <pre><code># Demo function
  function stuff {
    echo $0 $*
  }
  
  # Echo's the name of the script, but no command line arguments
  stuff
  
  # Echo's everything I want, but trying to avoid
  stuff $*
  </code></pre>