Text file src/cmd/go/testdata/script/run_issue11709.txt
1 # 'go run' should not pass extraneous environment variables to the subprocess. 2 go run run.go 3 ! stdout . 4 ! stderr . 5 6 -- run.go -- 7 package main 8 9 import "os" 10 11 func main() { 12 if os.Getenv("TERM") != "" { 13 os.Exit(1) 14 } 15 }