Stefan Krah <stefan-use...@bytereef.org> added the comment:

I find this particular section one of the most clear sections in the
whole Python documentation:

"On Unix, with shell=True: If args is a string, it specifies the command string 
to execute through the shell. This means that the string must be formatted 
exactly as it would be when typed at the shell prompt. This includes, for 
example, quoting or backslash escaping filenames with spaces in them. If args 
is a sequence, the first item specifies the command string, and any additional 
items will be treated as additional arguments to the shell itself. That is to 
say, Popen does the equivalent of:

Popen(['/bin/sh', '-c', args[0], args[1], ...])"

----------
status: open -> pending

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to