From: Guido van Rossum Date: Mon, 7 Aug 1995 20:17:23 +0000 (+0000) Subject: pass the command to sh -c X-Git-Tag: v1.3b1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=971ee13835e15801bfb6625674d3d5a0a663fb3d;p=thirdparty%2FPython%2Fcpython.git pass the command to sh -c --- diff --git a/Lib/popen2.py b/Lib/popen2.py index d195fef8a44d..45dcbb9ab344 100644 --- a/Lib/popen2.py +++ b/Lib/popen2.py @@ -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()