title: Is there any way to get the full command line that's executed when using subprocess.call?
body: <p>I'm using subprocess.call where you just give it an array of argumets and it will build the command line and execute it.</p>
  
  <p>First of all is there any escaping involved? (for example if I pass as argument a path to a file that has spaces in it, <code>/path/my file.txt</code> will this be escaped? <code>"/path/my file.txt"</code>)</p>
  
  <p>And is there any way to get this command line that's generated (after escaping and all) before being executed?</p>
  
  <p>As I need to check if the generated command line is not longer than certain amount of characters (to make sure it will not give an error when it gets executed).</p>