We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbeef11 commit 4acbea4Copy full SHA for 4acbea4
cmd2/cmd2.py
@@ -1840,7 +1840,8 @@ def _redirect_output(self, statement):
1840
# REDIRECTION_APPEND or REDIRECTION_OUTPUT
1841
if statement.output == constants.REDIRECTION_APPEND:
1842
mode = 'a'
1843
- sys.stdout = self.stdout = open(os.path.expanduser(shlex.split(statement.output_to)[0]), mode)
+ sys.stdout = self.stdout = open(os.path.expanduser(shlex.split(statement.output_to, posix=False)[0]),
1844
+ mode)
1845
else:
1846
# going to a paste buffer
1847
sys.stdout = self.stdout = tempfile.TemporaryFile(mode="w+")
0 commit comments