From 373c4047665adb5a8a0b26cd25f0c370847b2e15 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 19 Mar 2019 02:58:05 -0400 Subject: No longer appending \n to commands run by PyscriptBridge. This messes up redirection parsing of non-multiline commands. --- cmd2/pyscript_bridge.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd2/pyscript_bridge.py') diff --git a/cmd2/pyscript_bridge.py b/cmd2/pyscript_bridge.py index e1568b7c..a4eaf308 100644 --- a/cmd2/pyscript_bridge.py +++ b/cmd2/pyscript_bridge.py @@ -98,8 +98,7 @@ class PyscriptBridge(object): self._cmd2_app.stdout = copy_cmd_stdout with redirect_stdout(copy_cmd_stdout): with redirect_stderr(copy_stderr): - # Include a newline in case it's a multiline command - self._cmd2_app.onecmd_plus_hooks(command + '\n') + self._cmd2_app.onecmd_plus_hooks(command) finally: self._cmd2_app.stdout = copy_cmd_stdout.inner_stream -- cgit v1.2.1