]> code.ossystems Code Review - openembedded-core.git/commitdiff
TmuxRunning: handle multi-word commands
authorTyler Hall <tylerwhall@gmail.com>
Sun, 30 Jun 2013 19:51:53 +0000 (15:51 -0400)
committerSaul Wold <sgw@linux.intel.com>
Tue, 2 Jul 2013 14:58:09 +0000 (07:58 -0700)
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.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/lib/oe/terminal.py

index 25f8004faba88b60223d2d0c0e5f397d40bafc5f..4502f34f562f4c5400732d465f3329a9702b2a60 100644 (file)
@@ -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):