From 1b26df986b48a3147f02892f37486cc806e27905 Mon Sep 17 00:00:00 2001 From: hploetz Date: Wed, 8 Nov 2006 06:39:54 +0000 Subject: some crypto functions git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@122 f711b948-2313-0410-aaa9-d29f33439f0b --- shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell.py') 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) -- cgit v1.2.3