The non-obvious thing with 8972 is what to do with an argument list when the 'shell' option is True, isn't it? I can't see how it overlaps with my case. My suggestion is a flag to enable argument protection in Popen, either just for arguments passed as a list (i.e., like how it's done in 2.6) or maybe also for the case where you pass the command as a string (I haven't considered that case yet, since it's not directly interesting to me).

I can actually see that exarkun suggests something along the same lines in 8972: 'implement the cmd.exe quoting rules in a different function from the MS C runtime rules'.

Arve

On Mon, Feb 7, 2011 at 7:19 PM, R. David Murray <report@bugs.python.org> wrote:

R. David Murray <rdmurray@bitdance.com> added the comment:

As noted in issue 8972, it's not clear what such a mode should actually do.  If you have a concrete proposal you could make it, probably on the python-ideas mailing list.  But I'm personally not in favor of it; I prefer maintaining as much API consistency between windows and linux as we reasonably can.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue11139>
_______________________________________