diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index 5af82dec3c..210798c63f 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -267,7 +267,7 @@ func doRun(argv []string, returnStdout bool) string { argv = []string{"cmd", "/c", "sh", "-c", cmd} } var err os.Error - argv[0], err = exec.LookPath(command) + argv[0], err = exec.LookPath(argv[0]) if err != nil { Fatalf("can't find %s: %s", command, err) }