From 971ee13835e15801bfb6625674d3d5a0a663fb3d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 7 Aug 1995 20:17:23 +0000 Subject: pass the command to sh -c --- Lib/popen2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/popen2.py b/Lib/popen2.py index d195fef..45dcbb9 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() -- cgit v0.12