[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

Stefan Krah report at bugs.python.org
Wed Jul 21 19:23:50 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

This is a request for changing the current behavior on Unix, and I
doubt this is going to happen, since it could break existing code.

On a side note, there are already two ways get the desired output:


>>> Popen("gcc --version", shell=True)
gcc (GCC) 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3) ...


>>> p = Popen(["gcc", "--version"], stdout=PIPE)
>>> p.stdout.read()
b'gcc (GCC) 4.1.3 20080623 (prerelease) ...

----------
nosy: +skrah
resolution:  -> rejected
stage: patch review -> committed/rejected
status: open -> pending
type: behavior -> feature request

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6689>
_______________________________________


More information about the Python-bugs-list mailing list