Mercurial > python-cmd2
changeset 89:3a7eaefb2a34
more legit characters for filenames
author | catherine@Elli.myhome.westell.com |
---|---|
date | Thu, 07 Aug 2008 14:03:29 -0400 |
parents | 2907f7c2d74c |
children | |
files | cmd2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Wed Jul 30 12:41:14 2008 -0400 +++ b/cmd2.py Thu Aug 07 14:03:29 2008 -0400 @@ -197,7 +197,7 @@ ('terminator') argSeparatorPattern = pyparsing.Word(pyparsing.printables)('command') \ + pyparsing.SkipTo(pyparsing.StringEnd())('args') - filenamePattern = pyparsing.Word(pyparsing.alphanums + '#$-_~{},.!') + filenamePattern = pyparsing.Word(pyparsing.alphanums + '#$-_~{},.!:\\/') integerPattern = pyparsing.Word(pyparsing.nums).setParseAction( lambda s,l,t: [ int(t[0]) ] ) pipePattern = pyparsing.Literal('|')('pipe') + pyparsing.restOfLine('pipeTo') redirectOutPattern = (pyparsing.Literal('>>') ^ '>')('output') \