set_completer_delims("") so that the whole line will be passed for completion

git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@37 f711b948-2313-0410-aaa9-d29f33439f0b
This commit is contained in:
henryk 2005-10-08 23:34:10 +00:00
parent 59a311e450
commit 31fa1046f1
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ class Shell:
## FIXME basenamerc
readline.set_completer(self.complete)
readline.set_completer_delims("")
else:
print >>sys.stderr, "Warning: No readline module available. Most functionality will be missing."
@ -99,7 +100,7 @@ class Shell:
if self.env.get("print_backtrace", "") != "":
traceback.print_tb(sys.exc_info()[2])
_commandregex = re.compile(r'\s*(\w+)(\s+\S.*)?')
_commandregex = re.compile(r'\s*(\w+)(\s+.*)?')
_argumentregex = re.compile(r"""\s*(?:"((?:[^"]|\"|\\)*)"|'([^']*)'|(\S+))(\s+\S.*)?""")
def parse_and_execute(self, line):
"""Parses a command line and executes the associated function."""