title: python, windows : parsing command lines with shlex
body: <p>When you have to split a command-line, for example to call <code>Popen</code>, the best practice seems to be</p>
  
  <p><code>subprocess.Popen(shlex.split(cmd), ...</code></p>
  
  <p>but RTFM</p>
  
  <blockquote>
    <p>The <code>shlex</code> class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell ...</p>
  </blockquote>
  
  <p>So, what's the correct way on win32?
  And what about quote parsing and POSIX vs non-POSIX mode?</p>