aboutsummaryrefslogtreecommitdiffstats
path: root/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell.py')
-rw-r--r--shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.py b/shell.py
index 121d789..bd8775f 100644
--- a/shell.py
+++ b/shell.py
@@ -103,7 +103,7 @@ class Shell:
traceback.print_tb(sys.exc_info()[2])
_commandregex = re.compile(r'\s*(\w+)(\s+.*)?')
- _argumentregex = re.compile(r"""\s*(?:"((?:[^"]|\"|\\)*)"|'([^']*)'|(\S+))(\s+\S.*)?""")
+ _argumentregex = re.compile(r"""\s*(?:"((?:[^"]|\\"|\\\\)*)"|'([^']*)'|(\S+))(\s+\S.*)?""")
def parse_and_execute(self, line):
"""Parses a command line and executes the associated function."""
match = self._commandregex.match(line)