[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

Larry Hastings report at bugs.python.org
Tue Jun 8 13:11:47 CEST 2010


Larry Hastings <larry at hastings.org> added the comment:

Sorry for spamming updates, but here's two more things to consider.

1) What does it do on Windows?  For all I know all four combinations work fine there and we should preserve the existing functionality.

2) All four combinations work fine if you call a program without arguments.  I tried it with both "/bin/ls" and sys.executable and it worked like a champ.  The problem *only* happens if you specify command-line arguments.

----------

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


More information about the Python-bugs-list mailing list