diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-13 12:52:49 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-05-13 12:52:49 -0400 |
commit | c4ee21446e1507ebd5c42a521fa2c0bcb2648c85 (patch) | |
tree | 8d209fc86254c727c9cdd502d58d9e0ec2331cd9 /cmd2/cmd2.py | |
parent | 8ad8ddd10bf35f38e22b2c8f381faa4b2f87c853 (diff) | |
download | cmd2-git-c4ee21446e1507ebd5c42a521fa2c0bcb2648c85.tar.gz |
Preserving originally typed quotes of Statement.output_to for use in Statement.post_command()
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index d197e75e..c29a1812 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2082,7 +2082,7 @@ class Cmd(cmd.Cmd): if statement.output == constants.REDIRECTION_APPEND: mode = 'a' try: - new_stdout = open(statement.output_to, mode) + new_stdout = open(utils.strip_quotes(statement.output_to), mode) saved_state.redirecting = True sys.stdout = self.stdout = new_stdout except OSError as ex: |