mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go: hide the "TERM" environment variable from "go bug"
Fixes #18128 Change-Id: I5530c9d774a1e398cd759a05bbf308e6e42f0007 Reviewed-on: https://go-review.googlesource.com/33810 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
208d4d2227
commit
612469ab0b
1 changed files with 5 additions and 1 deletions
|
|
@ -42,8 +42,12 @@ func runBug(cmd *Command, args []string) {
|
||||||
env := newEnv
|
env := newEnv
|
||||||
env = append(env, extraEnvVars()...)
|
env = append(env, extraEnvVars()...)
|
||||||
for _, e := range env {
|
for _, e := range env {
|
||||||
|
// Hide the TERM environment variable from "go bug".
|
||||||
|
// See issue #18128
|
||||||
|
if e.name != "TERM" {
|
||||||
fmt.Fprintf(&buf, "%s=\"%s\"\n", e.name, e.value)
|
fmt.Fprintf(&buf, "%s=\"%s\"\n", e.name, e.value)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
printGoDetails(&buf)
|
printGoDetails(&buf)
|
||||||
printOSDetails(&buf)
|
printOSDetails(&buf)
|
||||||
printCDetails(&buf)
|
printCDetails(&buf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue