]> Cypherpunks repositories - gostls13.git/commit
cmd/go: quote parentheses when outputting command
authorIan Lance Taylor <iant@golang.org>
Fri, 4 May 2018 22:43:50 +0000 (15:43 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 5 May 2018 00:53:45 +0000 (00:53 +0000)
commit2a7e19e0383430d75dcef9637c0c6dcaf64127d5
treeaf21c2b50062de6999abf8ad40cc53dcf9d86e30
parentd0ed8d6ea161f89880e057fe54fa4825df4097b9
cmd/go: quote parentheses when outputting command

A gccgo command line can contain parentheses, for -( and -).
Quote them when outputting a command line, so that `go build -x`
output is suitable for use as shell input.

Change-Id: I43194b87bf048e583c222b19ca4bcdcb1deca97a
Reviewed-on: https://go-review.googlesource.com/111635
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/work/exec.go