diff --git a/sys/lib/python/subprocess.py b/sys/lib/python/subprocess.py index aeca23d1a..33a3bc226 100644 --- a/sys/lib/python/subprocess.py +++ b/sys/lib/python/subprocess.py @@ -991,7 +991,10 @@ class Popen(object): args = list(args) if shell: - args = ["/bin/sh", "-c"] + args + if sys.platform == 'plan9': + args = ["/bin/ape/sh", "-c"] + args + else: + args = ["/bin/sh", "-c"] + args if executable is None: executable = args[0]