[Python-Dev] subprocess shell=True on Windows doesn't escape ^ character
anatoly techtonik
techtonik at gmail.com
Sat Jun 14 22:04:23 CEST 2014
On Fri, Jun 13, 2014 at 5:11 AM, 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?
>
You need to write a wrapper script to automate several user commands. It is
quite common to use shell pipe redirection for joining many utils and calls
together than to rewrite data pipes in Python.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140614/802a0168/attachment.html>
More information about the Python-Dev
mailing list