commit | e9a6a7dd4c19d2630ff1d24ce6d9f30879138e81 | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 14:41:08 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 14:41:08 2010 +0000 |
tree | 63a093050dd7ef9320f051c2c6cc859e44af210f | |
parent | a1775944ae4f9770aa5980a2c2a5454d3994db25 [diff] [blame] |
Issue #9265: Incorrect name passed as arg[0] when shell=True and executable specified.
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 @@ if shell: args = ["/bin/sh", "-c"] + args + if executable: + args[0] = executable if executable is None: executable = args[0]