diff --git a/it/main.py b/it/main.py index 724b72e..6244c49 100644 --- a/it/main.py +++ b/it/main.py @@ -30,15 +30,15 @@ def parsecommand(command): for i in range(len(command)): if (command[i] in quotes) and inQuotes == 0\ and (i == 0 \ - or (i > 0 and command[i-1] != escape)): + or (i > 0 and not(command[i-1] in escapes))): inQuotes = command[i] elif command[i] == inQuotes \ - and (i > 0 and command[i-1] != escape): + and (i > 0 and not(command[i-1] in escapes)): inQuotes = 0 elif command[i] in space and inQuotes == 0\ - and (i > 0 and command[i-1] != escape): + and (i > 0 and not(command[i-1] in escapes)): parsed_command += [word] word = ""