]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: let go tool invocation use stdin
authorRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 21:14:24 +0000 (16:14 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 21:14:24 +0000 (16:14 -0500)
Fixes #2921.

R=golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/5647057

src/cmd/go/tool.go

index af8a0d287715b46fd0beeee0056598013456fd4c..0ec5cf6a747734154bba9153948d2b2e6fca3a23 100644 (file)
@@ -70,6 +70,7 @@ func runTool(cmd *Command, args []string) {
        toolCmd := &exec.Cmd{
                Path:   toolPath,
                Args:   args,
+               Stdin:  os.Stdin,
                Stdout: os.Stdout,
                Stderr: os.Stderr,
        }