diff -r 3d509c4a72bc Doc/library/subprocess.rst --- a/Doc/library/subprocess.rst Sun May 13 16:16:09 2012 -0500 +++ b/Doc/library/subprocess.rst Sun May 13 17:10:49 2012 -0700 @@ -268,6 +268,10 @@ from this vulnerability; see the Note in the :class:`Popen` constructor documentation for helpful hints in getting ``shell=False`` to work. + When using ``shell=True``, :func:`shlex.quote` can be used to properly + escape whitespace and shell metacharacters in strings that are going to + be used to construct shell commands. + These options, along with all of the other options, are described in more detail in the :class:`Popen` constructor documentation.