diff options
-rw-r--r-- | ranger/ext/spawn.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/spawn.py b/ranger/ext/spawn.py index b1f04cf6..5e5d6a95 100644 --- a/ranger/ext/spawn.py +++ b/ranger/ext/spawn.py @@ -20,8 +20,10 @@ def spawn(*args): """Runs a program, waits for its termination and returns its stdout""" if len(args) == 1: popen_arguments = args[0] + shell = isinstance(popen_arguments, str) else: popen_arguments = args - process = Popen(popen_arguments, stdout=PIPE) + shell = False + process = Popen(popen_arguments, stdout=PIPE, shell=shell) stdout, stderr = process.communicate() return stdout.decode(ENCODING) |