diff cmd2.py @ 88:bd0adc37f3cc

added characters to legitimate filename contents
author catherine.devlin@gmail.com
date Thu, 07 Aug 2008 13:49:30 -0400
parents 416ea36af789
children 1cd189536e90
line wrap: on
line diff
--- a/cmd2.py	Wed Jul 30 12:41:14 2008 -0400
+++ b/cmd2.py	Thu Aug 07 13:49:30 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') \