summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SHLEX_TODO.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/SHLEX_TODO.txt b/SHLEX_TODO.txt
index 7e79946c..774cbc9d 100644
--- a/SHLEX_TODO.txt
+++ b/SHLEX_TODO.txt
@@ -2,18 +2,22 @@
Notes on conversion from pyparsing to shlex taking place in the ply branch
Todo List:
+- case sensitive flag
- refactor Cmd2.parseline() to use StatementParser.parse()
-- refactor tab completion to use StatementParser instead of parseline()
-- delete SHLEX_TODO.txt once I have all this data captured elsewhere
+- get rid of legalChars
+- get rid of POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX - those options should be ignored
+- we now ignore self.identchars, which breaks backwards compatibility with the cmd in the standard library
+- delete SHLEX_TODO.txt once everything is done
Questions:
-
+- say I have a command called 'fred' which is a multiline command. If I make an alias
+ for fred called 'george' is george a multiline command? I think the answer is yes.
+ If you want a multi-line synonym for a command that isn't multiline, do it like
+ example.py does. If the answer is no, then I need to rework StatementParser.parse()
Changelog Items:
- if self.default_to_shell is true, then redirection and piping is now properly passed to the shell, previously it was truncated
- object passed to do_* methods has changed. It no longer is the pyparsing object, it's a new Statement object. A side effect of this is that we now have a clean interface between the parsing logic and the rest of cmd2. If we need to change the parser in the future, we can do it without breaking anything. The parser is now self.statement_parser instead of self.command_parser.
- input redirection no longer supported. Use the load command instead.
- submenus now call all hooks, it used to just call precmd and postcmd
-- cmd2 ignores identchars. The standard library cmd uses those characters to split the first "word" of the input, but cmd2 hasn't used those for a while, and the new parsing logic parses on whitespace, which has the added benefit of full unicode support, unlike cmd or prior versions of cmd2.
-