1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:34:44 -07:00

gobuild: command printing bug fix

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28583
CL=28590
This commit is contained in:
Russ Cox 2009-05-08 16:38:42 -07:00
parent 59be46ca35
commit 0880593436

View File

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