diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-25 21:08:21 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-25 21:08:21 -0400 |
commit | b59dac10bcc128497e48929b04c2ae380e4ed079 (patch) | |
tree | 21bf76ec4a094fa90a16f5d79f3bd09b6391f6a0 /cmd2/cmd2.py | |
parent | 20c5a818fc86ee7e353f34e9d88b5a5d8822b41b (diff) | |
download | cmd2-git-b59dac10bcc128497e48929b04c2ae380e4ed079.tar.gz |
Fixing unit tests
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 42559590..35866af4 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1995,7 +1995,7 @@ class Cmd(cmd.Cmd): # Since we have a valid command store it in the history if statement.command not in self.exclude_from_history: - self.history.append(statement.command_and_args) + self.history.append(statement.raw) try: func = getattr(self, funcname) @@ -2048,7 +2048,7 @@ class Cmd(cmd.Cmd): :param statement: Statement object with parsed input """ - arg = statement.command_and_args + arg = statement.raw if self.default_to_shell: result = os.system(arg) # If os.system() succeeded, then don't print warning about unknown command |