The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2289
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #2288 Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 0472ec00ec37cdc8ef4ebf9ea4ecc756624d4222 Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Wed, 17 Aug 2016 08:27:26 -0600 Subject: [PATCH] propagate the host's TERM to shell sessions Closes #2288 Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- lxc/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc/exec.go b/lxc/exec.go index 87427ed..e603ea3 100644 --- a/lxc/exec.go +++ b/lxc/exec.go @@ -95,7 +95,7 @@ func (c *execCmd) run(config *lxd.Config, args []string) error { return err } - env := map[string]string{"HOME": "/root", "USER": "root"} + env := map[string]string{"HOME": "/root", "USER": "root", "TERM": os.Getenv("TERM")} myEnv := os.Environ() for _, ent := range myEnv { if strings.HasPrefix(ent, "TERM=") {
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel