Commit 971ee138 authored by Guido van Rossum's avatar Guido van Rossum

pass the command to sh -c

parent e0bfd50d
......@@ -5,7 +5,7 @@ import string
MAXFD = 100 # Max number of file descriptors (os.getdtablesize()???)
def popen2(cmd):
cmd = string.split(cmd)
cmd = ['/bin/sh', '-c', cmd]
p2cread, p2cwrite = os.pipe()
c2pread, c2pwrite = os.pipe()
pid = os.fork()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment