]> Cypherpunks repositories - gostls13.git/commit
cmd/go: avoid setting variables for '/' and ':' in TestScript subprocess environments
authorBryan C. Mills <bcmills@google.com>
Fri, 8 Jul 2022 14:02:14 +0000 (10:02 -0400)
committerBryan Mills <bcmills@google.com>
Fri, 8 Jul 2022 18:51:33 +0000 (18:51 +0000)
commit5c1a13e7a47bc47c07057c0acf626e3fafe064c9
tree09094b255d871b6cb72d3fc5d61b385f130b9058
parent180bcad33dcd3d59443fe8eda5ae7556b1b2945b
cmd/go: avoid setting variables for '/' and ':' in TestScript subprocess environments

Also simplify platform-dependent handling of the PATH variable,
to make it more like the existing platform-dependent handling for
HOME and TMPDIR.

Fixes #53671.

Change-Id: Ica2665d3f61988c66fb6982b9feb61ca48eced79
Reviewed-on: https://go-review.googlesource.com/c/go/+/416554
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/README