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