diff options
author | Guido van Rossum <guido@python.org> | 1995-08-07 20:17:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-07 20:17:23 (GMT) |
commit | 971ee13835e15801bfb6625674d3d5a0a663fb3d (patch) | |
tree | 72cef3ed413e156538f0a65010afd0893b0c34d0 /Lib/popen2.py | |
parent | e0bfd50d768f16620cf0eceb5048eaaccdb522f0 (diff) | |
download | cpython-971ee13835e15801bfb6625674d3d5a0a663fb3d.zip cpython-971ee13835e15801bfb6625674d3d5a0a663fb3d.tar.gz cpython-971ee13835e15801bfb6625674d3d5a0a663fb3d.tar.bz2 |
pass the command to sh -c
Diffstat (limited to 'Lib/popen2.py')
-rw-r--r-- | Lib/popen2.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |