diff -r 089573725c77 Lib/subprocess.py --- a/Lib/subprocess.py Wed Nov 05 22:17:29 2014 +0100 +++ b/Lib/subprocess.py Wed Nov 05 17:11:47 2014 -0600 @@ -1344,7 +1344,8 @@ args = list(args) if shell: - args = ["/bin/sh", "-c"] + args + shell_executable_name = os.get_shell_executable() + args = [shell_executable_name, "-c"] + args if executable: args[0] = executable