summaryrefslogtreecommitdiffstats
path: root/meta/classes/terminal.bbclass
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2014-01-10 15:59:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 11:04:16 +0000
commitd3f96d104bc3193cc0133b06240b9da45a7658df (patch)
treeb7efb3154f61d388eab27f93175a70fb47ee6a94 /meta/classes/terminal.bbclass
parent301ae757732166e0b9dc83fe5b73b78a24bfe301 (diff)
downloadpoky-d3f96d104bc3193cc0133b06240b9da45a7658df.tar.gz
terminal.bbclass: do not export PS1
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. (From OE-Core master rev: a5e6926cd409140d16391c72316da00ffbfe5429) (From OE-Core rev: a7d489f3341262b662e720170d64caf7092a956b) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/terminal.bbclass')
-rw-r--r--meta/classes/terminal.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index efbc4eb9ae..290366600b 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -64,6 +64,10 @@ def oe_terminal(command, title, d):
64 envdata.setVar(key, str(value)) 64 envdata.setVar(key, str(value))
65 envdata.setVarFlag(key, 'export', 1) 65 envdata.setVarFlag(key, 'export', 1)
66 66
67 # A complex PS1 might need more escaping of chars.
68 # Lets not export PS1 instead.
69 envdata.delVar("PS1")
70
67 # Replace command with an executable wrapper script 71 # Replace command with an executable wrapper script
68 command = emit_terminal_func(command, envdata, d) 72 command = emit_terminal_func(command, envdata, d)
69 73