Skip to content

Commit

Permalink
changed split function to use shlex
Browse files Browse the repository at this point in the history
  • Loading branch information
challurip committed May 11, 2017
1 parent c1893e2 commit 43ad6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cylc-cat-log
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def main():
"local tail command template"))
commands.append(shlex.split(cmd_tmpl % {"filename": filename}))
elif options.geditor or options.editor:
command_list = editor.split()
command_list = shlex.split(editor)
command_list.append(viewfile.name)
commands.append(command_list)
else:
Expand Down

0 comments on commit 43ad6b5

Please sign in to comment.