New submission from Tim Golden <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2304>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to