From: Joe Poirier Date: Sat, 7 May 2011 05:05:04 +0000 (-0700) Subject: windows: reset command var to sh for correct error output messages X-Git-Tag: weekly.2011-05-22~133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=733fde588babc6e7455d4e2aa53e34defc99f966;p=gostls13.git windows: reset command var to sh for correct error output messages R=golang-dev, r CC=golang-dev https://golang.org/cl/4492043 --- diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index a7ba8dd11a..263ada921b 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -182,7 +182,7 @@ func getTestFileNames() { } } -// parseFiles parses the files and remembers the packages we find. +// parseFiles parses the files and remembers the packages we find. func parseFiles() { fileSet := token.NewFileSet() for _, f := range files { @@ -285,6 +285,7 @@ func doRun(argv []string, returnStdout bool) string { } cmd += `"` + v + `"` } + command = "sh" argv = []string{"sh", "-c", cmd} } var err os.Error