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 
&#39;shell&#39; option is True, isn&#39;t it? I can&#39;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&#39;s done in 
2.6) or maybe also for the case where you pass the command as a string (I 
haven&#39;t considered that case yet, since it&#39;s not directly interesting 
to me).<div>
<br></div><div>I can actually see that exarkun suggests something along the 
same lines in 8972: &#39;implement the cmd.exe quoting rules in a different 
function from the MS C runtime rules&#39;.<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">&lt;<a 
href="mailto:rep...@bugs.python.org";>rep...@bugs.python.org</a>&gt;</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 &lt;<a 
href="mailto:rdmur...@bitdance.com";>rdmur...@bitdance.com</a>&gt; added the 
comment:<br>
<br>
</div>As noted in issue 8972, it&#39;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&#39;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 &lt;<a 
href="mailto:rep...@bugs.python.org";>rep...@bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue11139"; 
target="_blank">http://bugs.python.org/issue11139</a>&gt;<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

Reply via email to