Explicitly specify shell=False when using powerline.lib.shell.run_cmd

This commit is contained in:
ZyX 2014-06-25 21:00:38 +04:00
parent ed267933ed
commit afa6b83815
1 changed files with 1 additions and 1 deletions

View File

@ -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