summaryrefslogtreecommitdiff
path: root/cmd2/pyscript_bridge.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-19 02:58:05 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-19 02:58:05 -0400
commit373c4047665adb5a8a0b26cd25f0c370847b2e15 (patch)
treeb603a4a03cbe85c3a273f413ebe408c6e6c0a20e /cmd2/pyscript_bridge.py
parent2beb3debc4dd9501b9578d3a2c4c61f679b4d50c (diff)
downloadcmd2-git-373c4047665adb5a8a0b26cd25f0c370847b2e15.tar.gz
No longer appending \n to commands run by PyscriptBridge. This messes up redirection parsing
of non-multiline commands.
Diffstat (limited to 'cmd2/pyscript_bridge.py')
-rw-r--r--cmd2/pyscript_bridge.py3
1 files changed, 1 insertions, 2 deletions
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