]> Cypherpunks repositories - gostls13.git/commitdiff
gobuild: command printing bug fix
authorRuss Cox <rsc@golang.org>
Fri, 8 May 2009 23:38:42 +0000 (16:38 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 8 May 2009 23:38:42 +0000 (16:38 -0700)
R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28583
CL=28590

src/cmd/gobuild/util.go

index ac0cd03c1aa6160c8fcf3f4a4436814e387c2c82..43d7aed79819558989985107e9733fe69c3267e6 100644 (file)
@@ -100,7 +100,7 @@ func Build(cmd []string, file string, display bool) (ok bool) {
        if display {
                fmt.Fprint(os.Stderr, "$ ");
                for i, s := range cmd {
-                       fmt.Fprint(os.Stderr, s[i], " ");
+                       fmt.Fprint(os.Stderr, s, " ");
                }
                fmt.Fprint(os.Stderr, file, "\n");
        }