]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/script: Cmp() should not perform environment substitutions
authorqmuntal <quimmuntal@gmail.com>
Thu, 3 Nov 2022 14:30:42 +0000 (15:30 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 3 Nov 2022 15:31:36 +0000 (15:31 +0000)
This is an oversight from https://go-review.googlesource.com/c/go/+/419875,
where script commands were refactored and factored out to a new package.

For #27494.

Change-Id: Ie606cab39f60859ee1da5165dcc94c8470c94325
Reviewed-on: https://go-review.googlesource.com/c/go/+/447575
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/go/internal/script/cmds.go

index 393f565733d499d4d2ba19b63a847a91f9342c5a..90e7fb957087e00b62b2c9a74ec5d927f18fa067 100644 (file)
@@ -188,7 +188,7 @@ func Cmp() Cmd {
                        },
                },
                func(s *State, args ...string) (WaitFunc, error) {
-                       return nil, doCompare(s, true, args...)
+                       return nil, doCompare(s, false, args...)
                })
 }