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 c2621ea..f8a6342 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1073,6 +1073,8 @@
 
             if shell:
                 args = ["/bin/sh", "-c"] + args
+                if executable:
+                    args[0] = executable
 
             if executable is None:
                 executable = args[0]