##// END OF EJS Templates
Use the default shell to capture shell output....
Pavol Juhas -
Show More
@@ -17,6 +17,7 b' of subprocess utilities, and it contains tools that are common to all of them.'
17 17 import subprocess
18 18 import shlex
19 19 import sys
20 import os
20 21
21 22 from IPython.utils import py3compat
22 23
@@ -70,6 +71,7 b' def process_handler(cmd, callback, stderr=subprocess.PIPE):'
70 71 # On win32, close_fds can't be true when using pipes for stdin/out/err
71 72 close_fds = sys.platform != 'win32'
72 73 p = subprocess.Popen(cmd, shell=isinstance(cmd, py3compat.string_types),
74 executable=os.environ.get('SHELL'),
73 75 stdin=subprocess.PIPE,
74 76 stdout=subprocess.PIPE,
75 77 stderr=stderr,
General Comments 0
You need to be logged in to leave comments. Login now