We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208d4d2 commit 612469aCopy full SHA for 612469a
src/cmd/go/bug.go
@@ -42,7 +42,11 @@ func runBug(cmd *Command, args []string) {
42
env := newEnv
43
env = append(env, extraEnvVars()...)
44
for _, e := range env {
45
- fmt.Fprintf(&buf, "%s=\"%s\"\n", e.name, e.value)
+ // Hide the TERM environment variable from "go bug".
46
+ // See issue #18128
47
+ if e.name != "TERM" {
48
+ fmt.Fprintf(&buf, "%s=\"%s\"\n", e.name, e.value)
49
+ }
50
}
51
printGoDetails(&buf)
52
printOSDetails(&buf)
0 commit comments