[Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

Nick Coghlan ncoghlan at gmail.com
Fri Jun 13 04:43:56 CEST 2014
On 13 Jun 2014 12:12, "Nikolaus Rath" <Nikolaus at rath.org> wrote:
>
> "R. David Murray" <rdmurray at bitdance.com> writes:
> > Also notice that using a list with shell=True is using the API
> > incorrectly.  It wouldn't even work on Linux, so that torpedoes
> > the cross-platform concern already :)
> >
> > This kind of confusion is why I opened http://bugs.python.org/issue7839.
>
> Can someone describe an use case where shell=True actually makes sense
> at all?

When you're writing platform specific code, it's occasionally useful. It's
generally best avoided, though.

Cheers,
Nick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140613/f18c9fb1/attachment-0001.html>


More information about the Python-Dev mailing list