From 3660e6d02fb7dbe6ca7bd4c106e494554e298a62 Mon Sep 17 00:00:00 2001
From: cody burkard <cody@onlab.us>
Date: Fri, 7 Nov 2014 01:11:40 -0800
Subject: [PATCH] wrap the title string in quotes so that bash interprets it
 correctly

---
 mininet/term.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mininet/term.py b/mininet/term.py
index fa3b086a..91d95ebc 100644
--- a/mininet/term.py
+++ b/mininet/term.py
@@ -41,7 +41,7 @@ def makeTerm( node, title='Node', term='xterm', display=None ):
        title: base title
        term: 'xterm' or 'gterm'
        returns: two Popen objects, tunnel and terminal"""
-    title += ': ' + node.name
+    title = '"%s: %s"' % ( title, node.name )
     if not node.inNamespace:
         title += ' (root)'
     cmds = {
-- 
GitLab