From afa6b83815a2dca53b87b0c292d9cb20ce6beafc Mon Sep 17 00:00:00 2001 From: ZyX Date: Wed, 25 Jun 2014 21:00:38 +0400 Subject: [PATCH] Explicitly specify shell=False when using powerline.lib.shell.run_cmd --- powerline/lib/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/lib/shell.py b/powerline/lib/shell.py index a74affce..a0077fc0 100644 --- a/powerline/lib/shell.py +++ b/powerline/lib/shell.py @@ -23,7 +23,7 @@ def run_cmd(pl, cmd, stdin=None): String passed to command. May be None. ''' try: - p = Popen(cmd, stdout=PIPE, stdin=PIPE) + p = Popen(cmd, shell=False, stdout=PIPE, stdin=PIPE) except OSError as e: pl.exception('Could not execute command ({0}): {1}', e, cmd) return None