]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
terminal.bbclass: do not export PS1
authorAnders Darander <anders@chargestorm.se>
Fri, 10 Jan 2014 14:59:01 +0000 (15:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Jan 2014 15:15:47 +0000 (15:15 +0000)
With a complex PS1 setup, PS1 might not have all characters correctly escaped
when terminal.bbclass writes the export. This caused the run.do_terminal.PID to
terminate, making it impossible to use the devshell.

As the spawned shell will parse e.g. .bashrc (or whatever rc-file is being
used), PS1 will be reset in the devshell.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/terminal.bbclass

index 774f0559fbe271b49211ce44a15e5d1655af28b8..e577c6d5943e3421d771a6709d737b1618032515 100644 (file)
@@ -64,6 +64,10 @@ def oe_terminal(command, title, d):
             envdata.setVar(key, str(value))
             envdata.setVarFlag(key, 'export', 1)
 
+    # A complex PS1 might need more escaping of chars.
+    # Lets not export PS1 instead.
+    envdata.delVar("PS1")
+
     # Replace command with an executable wrapper script
     command = emit_terminal_func(command, envdata, d)