aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/generate_env.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/generate_env.txt')
-rw-r--r--src/cmd/go/testdata/script/generate_env.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/generate_env.txt b/src/cmd/go/testdata/script/generate_env.txt
index 0d3693fa33..2df1663376 100644
--- a/src/cmd/go/testdata/script/generate_env.txt
+++ b/src/cmd/go/testdata/script/generate_env.txt
@@ -1,7 +1,8 @@
# Install an env command because Windows and plan9 don't have it.
env GOBIN=$WORK/tmp/bin
go install env.go
-env PATH=$GOBIN${:}$PATH
+[plan9] env path=$GOBIN${:}$path
+[!plan9] env PATH=$GOBIN${:}$PATH
# Test generators have access to the environment
go generate ./printenv.go