[Python-checkins] cpython (3.3): Issue #14616: Mention shlex.quote in subprocess docs.
andrew.svetlov
python-checkins at python.org
Sun Oct 28 10:43:15 CET 2012
http://hg.python.org/cpython/rev/f9d11ca3ccd1
changeset: 80007:f9d11ca3ccd1
branch: 3.3
parent: 80005:06a5fe86d87c
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Sun Oct 28 11:42:26 2012 +0200
summary:
Issue #14616: Mention shlex.quote in subprocess docs.
Patch by Chris Rebert.
files:
Doc/library/subprocess.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -341,6 +341,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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list