Fix TerminalCommands parsing unix-style arguments incorrectly

This commit is contained in:
Kristóf Tóth 2018-05-26 22:39:27 +02:00
parent 0038663bc6
commit 77fabf28f6

View File

@ -3,6 +3,7 @@
from abc import ABC
from re import match
from shlex import split
from tfw.config.logs import logging
@ -57,7 +58,7 @@ class TerminalCommands(ABC):
return match(self._command_method_regex, string)
def callback(self, history):
parts = history[-1].split()
parts = split(history[-1])
command = parts[0]
if command in self.command_implemetations.keys():
try: