diff options
author | Stefan Krah <stefan@bytereef.org> | 2010-07-19 14:41:08 (GMT) |
---|---|---|
committer | Stefan Krah <stefan@bytereef.org> | 2010-07-19 14:41:08 (GMT) |
commit | e9a6a7dd4c19d2630ff1d24ce6d9f30879138e81 (patch) | |
tree | 63a093050dd7ef9320f051c2c6cc859e44af210f /Lib/subprocess.py | |
parent | a1775944ae4f9770aa5980a2c2a5454d3994db25 (diff) | |
download | cpython-e9a6a7dd4c19d2630ff1d24ce6d9f30879138e81.zip cpython-e9a6a7dd4c19d2630ff1d24ce6d9f30879138e81.tar.gz cpython-e9a6a7dd4c19d2630ff1d24ce6d9f30879138e81.tar.bz2 |
Issue #9265: Incorrect name passed as arg[0] when shell=True
and executable specified.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index bdd116a..3cd8e90 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -1091,6 +1091,8 @@ class Popen(object): if shell: args = ["/bin/sh", "-c"] + args + if executable: + args[0] = executable if executable is None: executable = args[0] |