mirror of
https://github.com/python/cpython.git
synced 2025-11-15 16:09:29 +00:00
Issue #14616: Mention shlex.quote in subprocess docs.
Patch by Chris Rebert.
This commit is contained in:
parent
65e2bef4f0
commit
c2415eb7e6
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue