diff options
| author | Brett Cannon <brett@python.org> | 2012-10-28 15:48:24 (GMT) |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2012-10-28 15:48:24 (GMT) |
| commit | 0e8c49d3583bbe86dd26f07819fd526eda8a0dcc (patch) | |
| tree | cd085f2d606c69f7569e5006b6fa98faf7001197 /Doc/library/subprocess.rst | |
| parent | 6a85f3cbe4b43860c527c43bd5da0220c4f96c0e (diff) | |
| parent | 8ca705d5495f02ad93380e1f960adb98f7c00e22 (diff) | |
| download | cpython-0e8c49d3583bbe86dd26f07819fd526eda8a0dcc.zip cpython-0e8c49d3583bbe86dd26f07819fd526eda8a0dcc.tar.gz cpython-0e8c49d3583bbe86dd26f07819fd526eda8a0dcc.tar.bz2 | |
merge
Diffstat (limited to 'Doc/library/subprocess.rst')
| -rw-r--r-- | Doc/library/subprocess.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 66d6cbb..34fdf10 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -341,6 +341,10 @@ default values. The arguments that are most commonly needed are: 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. |
