[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+" "+arg2, shell=True)
R. David Murray
report at bugs.python.org
Tue Feb 16 21:41:01 CET 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
I think you should reread the Popen docs carefully :)
That example should be:
call([sys.executable, 'diff.py', 'oldfile', 'newfile'])
And there are examples of that call format in the Popen docs, as well as the explanation of exactly how to format the list correctly. So again, I don't think it is a good idea to try to duplicate that in the call/check_call docs.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7939>
_______________________________________
More information about the Python-bugs-list
mailing list