3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test that environment variables are accessible through
18 ga := os.Getenv("PATH")
19 if runtime.GOOS == "plan9" {
20 ga = os.Getenv("path")
23 print("PATH is empty\n")
26 xxx := os.Getenv("DOES_NOT_EXIST")
28 print("$DOES_NOT_EXIST=", xxx, "\n")