handle two-word commands with tmux
authorPeter Seebach <peter.seebach@windriver.com>
Tue, 11 Jun 2013 14:28:03 +0000 (09:28 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Jun 2013 14:55:58 +0000 (15:55 +0100)
commitffe5a0a621f5c144de90748f550f20c76614e890
tree902e73ce448985e6cc0e3f5097cd8b104581ee61
parentc80a8661be51f0be7fdbef5c049075b059ff9833
handle two-word commands with tmux

Trying to make a devshell using tmux can fail because "tmux new"
expects a single command, not a series of arguments. It does, however,
split strings in a suitable way. So you can quote the command.

The failure mode is particularly arcane, in that you end up
with a message like:

ERROR: Unable to spawn terminal auto: \
Execution of 'pseudo /bin/bash' failed with exit code 1:
usage: new-session [-d] [-n window-name] [-s session-name] \
[-t target-session] [command]

which is confusing because there's no "new-session" anywhere in
sight (that's actually "tmux new"), and because what failed to execute
wasn't either pseudo or bash.

(From OE-Core rev: f8ed7446755eeb88191e16749350efa1e7e6197c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/terminal.py