mirror of
https://github.com/python/cpython.git
synced 2025-10-04 22:20:46 +00:00
Merged revisions 82973 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ........ r82973 | stefan.krah | 2010-07-19 16:41:08 +0200 (Mon, 19 Jul 2010) | 4 lines Issue #9265: Incorrect name passed as arg[0] when shell=True and executable specified. ........
This commit is contained in:
parent
d483a1a12b
commit
9ea629cc83
2 changed files with 21 additions and 0 deletions
|
@ -1029,6 +1029,8 @@ class Popen(object):
|
|||
|
||||
if shell:
|
||||
args = ["/bin/sh", "-c"] + args
|
||||
if executable:
|
||||
args[0] = executable
|
||||
|
||||
if executable is None:
|
||||
executable = args[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue