Title: subprocess.list2cmdline doesn't quote the & character · Issue #53218 · python/cpython · GitHub
Open Graph Title: subprocess.list2cmdline doesn't quote the & character · Issue #53218 · python/cpython
X Title: subprocess.list2cmdline doesn't quote the & character · Issue #53218 · python/cpython
Description: BPO 8972 Nosy @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer Superseder bpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True Files list2cmdline_ampersand_fix.patch: patch file f...
Open Graph Description: BPO 8972 Nosy @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer Superseder bpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True Files list2c...
X Description: BPO 8972 Nosy @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer Superseder bpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True Files list2c...
Opengraph URL: https://github.com/python/cpython/issues/53218
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"subprocess.list2cmdline doesn't quote the \u0026 character","articleBody":"BPO | [8972](https://bugs.python.org/issue8972)\n--- | :---\nNosy | @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer\nSuperseder | \u003cli\u003ebpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True\u003c/li\u003e\nFiles | \u003cli\u003e[list2cmdline_ampersand_fix.patch](https://bugs.python.org/file17645/list2cmdline_ampersand_fix.patch \"Uploaded as text/plain at 2010-06-12.16:58:10 by shypike\"): patch file for subprocess.py and test_subprocess.py\u003c/li\u003e\u003cli\u003e[list2cmdline_proper_fix.patch](https://bugs.python.org/file17650/list2cmdline_proper_fix.patch \"Uploaded as text/plain at 2010-06-12.22:48:19 by shypike\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2014-07-15.17:33:05.220\u003e\ncreated_at = \u003cDate 2010-06-11.13:11:04.774\u003e\nlabels = ['invalid', 'type-bug', 'library', 'OS-windows']\ntitle = \"subprocess.list2cmdline doesn't quote the \u0026 character\"\nupdated_at = \u003cDate 2014-07-15.17:33:05.219\u003e\nuser = 'https://bugs.python.org/shypike'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2014-07-15.17:33:05.219\u003e\nactor = 'r.david.murray'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2014-07-15.17:33:05.220\u003e\ncloser = 'r.david.murray'\ncomponents = ['Library (Lib)', 'Windows']\ncreation = \u003cDate 2010-06-11.13:11:04.774\u003e\ncreator = 'shypike'\ndependencies = []\nfiles = ['17645', '17650']\nhgrepos = []\nissue_num = 8972\nkeywords = ['patch']\nmessage_count = 16.0\nmessages = ['107544', '107646', '107672', '107679', '107680', '107713', '107721', '107752', '107768', '107769', '108131', '108135', '108162', '128127', '222887', '223128']\nnosy_count = 9.0\nnosy_names = ['gregory.p.smith', 'exarkun', 'vstinner', 'eric.smith', 'ezio.melotti', 'r.david.murray', 'SilentGhost', 'shypike', 'BreamoreBoy']\npr_nums = []\npriority = 'normal'\nresolution = 'not a bug'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = '7839'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue8972'\nversions = ['Python 2.7', 'Python 3.4', 'Python 3.5']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/shypike","@type":"Person","name":"shypike"},"datePublished":"2010-06-11T13:11:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/53218/cpython/issues/53218"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbd965b4-625f-4982-fdf0-2b984d28338e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC3A:1EDC:627E944:89D851C:6A50EAC6 |
| html-safe-nonce | 22525ddb14459843ee9a617365d1a85b64a427623c91058e872bd7d0fff04200 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzNBOjFFREM6NjI3RTk0NDo4OUQ4NTFDOjZBNTBFQUM2IiwidmlzaXRvcl9pZCI6IjMxNjc4OTU4NTI3MTE3MzM5NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cccbd6a90abae142ccfd29b16416678584d5d7ae3031d4ad99d8b28dfc881c43 |
| hovercard-subject-tag | issue:1198856562 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/53218/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9aa48722211ef4a3b9503e5b948686c7a881d1f27423dfca248c391d8fb4704c/python/cpython/issues/53218 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9aa48722211ef4a3b9503e5b948686c7a881d1f27423dfca248c391d8fb4704c/python/cpython/issues/53218 |
| og:image:alt | BPO 8972 Nosy @gpshead, @vstinner, @ericvsmith, @ezio-melotti, @bitdancer Superseder bpo-7839: Popen should raise ValueError if pass a string when shell=False or a list when shell=True Files list2c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shypike |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width