[issue2304] subprocess under windows fails to quote properly under Windows when shell=True
Tim Golden
report at bugs.python.org
Sun Mar 16 17:32:19 CET 2008
New submission from Tim Golden <mail at timgolden.me.uk>:
The subprocess.Popen function reorganises the command line for process
creation when shell=True is passed in under Windows. It runs the
existing executable & arguments as arguments to %COMSPEC% /c. However
this fails when a second parameter (typically a filename) has an
embedded space. The patch attached adds extra parameters in this case
and adds appropriate unit tests.
Frankly I'm new to unittests and I more-or-less cloned an existing one
to make this work. Happy to be corrected if there's things done wrong &c.
----------
components: Library (Lib)
files: subprocess-r61420.patch
keywords: patch
messages: 63583
nosy: tim.golden
severity: normal
status: open
title: subprocess under windows fails to quote properly under Windows when shell=True
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9682/subprocess-r61420.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2304>
__________________________________
More information about the Python-bugs-list
mailing list