1# 'go run' should not pass extraneous environment variables to the subprocess. 2go run run.go 3! stdout . 4! stderr . 5 6-- run.go -- 7package main 8 9import "os" 10 11func main() { 12 if os.Getenv("TERM") != "" { 13 os.Exit(1) 14 } 15}
View as plain text