title: How does /bin/bash -c differ from executing a command directly?
body: <p>I'm curious why the commmand:</p>
  
  <pre><code>for f in `/bin/ls /mydir | sort | tail -n 10`; do echo $f; done;
  </code></pre>
  
  <p>Outputs the last ten files in /mydir, but</p>
  
  <pre><code>/bin/bash -c "for f in `/bin/ls /mydir | sort | tail -n 10`; do echo $f; done;"
  </code></pre>
  
  <p>Outputs "syntax error near unexpected token '[file in /mydir]'"</p>