]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
pass the command to sh -c
authorGuido van Rossum <guido@python.org>
Mon, 7 Aug 1995 20:17:23 +0000 (20:17 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 7 Aug 1995 20:17:23 +0000 (20:17 +0000)
Lib/popen2.py

index d195fef8a44d00b619e079547fc9aa473186c11f..45dcbb9ab3444c2633abd858bd0eadfdb152d11d 100644 (file)
@@ -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()