This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author piotr.dobrogost
Recipients Arve.Knudsen, exarkun, piotr.dobrogost, r.david.murray
Date 2013-08-03.22:00:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
According to the docstring of list2cmdline function in subprocess module the sequence of a backslash followed by a double quote mark should denote double quote mark in the output string. However it's not the case

Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import subprocess
    >>> print subprocess.list2cmdline(r'\"1|2\"')
    \ \" 1 | 2 \ \"

The same behavior is in Python 3.3.1.

See "On Windows, how can I protect arguments to shell scripts using Python 2.7 subprocess?"( question on Stack Overflow.
Date User Action Args
2013-08-03 22:00:42piotr.dobrogostsetrecipients: + piotr.dobrogost, exarkun, r.david.murray, Arve.Knudsen
2013-08-03 22:00:42piotr.dobrogostsetmessageid: <>
2013-08-03 22:00:41piotr.dobrogostlinkissue18649 messages
2013-08-03 22:00:41piotr.dobrogostcreate