[oe-commits] Tyler Hall : TmuxRunning: handle multi-word commands

git at git.openembedded.org git at git.openembedded.org
Tue Aug 13 12:06:18 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: 2470a8f680653f569b88476124fc41a4317e3c5a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2470a8f680653f569b88476124fc41a4317e3c5a

Author: Tyler Hall <tylerwhall at gmail.com>
Date:   Sun Jun 30 15:51:53 2013 -0400

TmuxRunning: handle multi-word commands

Just as in f8ed7446755eeb88191e16749350efa1e7e6197c, tmux wants a single
argument for its command. This applies to the "split-window" command as
well as "new."

Note that this alone is not enough to fix the TmuxRunning devshell when
using pseudo because tmux does not preserve the environment that pseudo
requires.

(From OE-Core master rev: 36fb9799d6a449d86acca3be354af56ad87c3151)

Signed-off-by: Tyler Hall <tylerwhall at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/terminal.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index aecf4e8..66197a8 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -108,7 +108,7 @@ class Screen(Terminal):
 class TmuxRunning(Terminal):
     """Open a new pane in the current running tmux window"""
     name = 'tmux-running'
-    command = 'tmux split-window {command}'
+    command = 'tmux split-window "{command}"'
     priority = 2.75
 
     def __init__(self, sh_cmd, title=None, env=None, d=None):



More information about the Openembedded-commits mailing list