title: Bash: How to split a command line into a list of arguments verbatim?
body: <p>For example, when given a command line:</p>
  
  <pre><code>ls "aaa bbb"
  </code></pre>
  
  <p>I'd like to have a list of arguments:</p>
  
  <pre><code>args[0]='ls'
  args[1]='"aaa bbb"'
  </code></pre>
  
  <p>Is this possible with Bash and common UNIX utilities (sed, awk, xargs, etc.)?</p>
  
  <p>Please note that the arguments must be verbatim. Below is NOT a correct answer:</p>
  
  <pre><code>args[0]='ls'
  args[1]='aaa bbb'
  </code></pre>