From 67e6373838c06d74ec596ed7f880214c2b34c5e6 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 22 May 2017 16:37:53 -0700 Subject: Bumping version to 0.7.3a Changing to alpha version just to avoid confusion with release in PyPI --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2.py') diff --git a/cmd2.py b/cmd2.py index a8171c2f..9f2f6645 100755 --- a/cmd2.py +++ b/cmd2.py @@ -87,7 +87,7 @@ try: except ImportError: pass -__version__ = '0.7.2' +__version__ = '0.7.3a' # Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past pyparsing.ParserElement.enablePackrat() -- cgit v1.2.1 From 652b762f0d5b4f68499adbf6b1470f5fd07a5a77 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Tue, 23 May 2017 10:39:44 -0700 Subject: Fix corner case in command completion of shell commands Fixed the path part of command completion of shell commands when that path happens to being with "~" (i.e. relies on user path expansion). --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2.py') diff --git a/cmd2.py b/cmd2.py index 9f2f6645..412204f1 100755 --- a/cmd2.py +++ b/cmd2.py @@ -1528,7 +1528,7 @@ class Cmd(cmd.Cmd): if len(possible_path) == 0 and not text: return [] - if os.path.sep not in possible_path: + if os.path.sep not in possible_path and possible_path != '~': # The text before the search text is not a directory path. # It is OK to try shell command completion. command_completions = self._shell_command_complete(text) -- cgit v1.2.1