]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] cmd/go: don't let script grep commands match $WORK
authorIan Lance Taylor <iant@golang.org>
Sat, 25 Aug 2018 17:11:19 +0000 (10:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 26 Aug 2018 05:27:46 +0000 (05:27 +0000)
commit6d601b8a95c209e018db3dfd7af0ac9119cdbbe5
tree35e267b48c4cf7dd78f1ae44235a225519b77884
parent523dc5a4125b4cc5a945463f19df608440c6abc7
[release-branch.go1.11] cmd/go: don't let script grep commands match $WORK

If $WORK happens to contain the string that a stdout/stderr/grep
command is searching for, a negative grep command will fail incorrectly.

Fixes #27170
Fixes #27221

Change-Id: I84454d3c42360fe3295c7235d388381525eb85b4
Reviewed-on: https://go-review.googlesource.com/131398
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
(cherry picked from commit e3106b455b74c91db94e8e1abf2342b5b5aec7b1)
Reviewed-on: https://go-review.googlesource.com/131399
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/script_test.go