Arve Knudsen <arve.knud...@gmail.com> added the comment:
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 <rep...@bugs.python.org>wrote:
>
> R. David Murray <rdmur...@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 <rep...@bugs.python.org>
> <http://bugs.python.org/issue11139>
> _______________________________________
>
----------
Added file: http://bugs.python.org/file20715/unnamed
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11139>
_______________________________________
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).<div>
<br></div><div>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'.<div><br></div><div>Arve<br>
<br><div class="gmail_quote">On Mon, Feb 7, 2011 at 7:19 PM, R. David Murray
<span dir="ltr"><<a
href="mailto:rep...@bugs.python.org">rep...@bugs.python.org</a>></span>
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
R. David Murray <<a
href="mailto:rdmur...@bitdance.com">rdmur...@bitdance.com</a>> added the
comment:<br>
<br>
</div>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.<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker <<a
href="mailto:rep...@bugs.python.org">rep...@bugs.python.org</a>><br>
<<a href="http://bugs.python.org/issue11139"
target="_blank">http://bugs.python.org/issue11139</a>><br>
_______________________________________<br>
</div></div></blockquote></div><br></div></div>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com