]> Cypherpunks repositories - gostls13.git/commit
cmd/go: correctly quote environment variables in -x output
authorHiroshi Ioka <hirochachacha@gmail.com>
Mon, 14 Aug 2017 14:02:56 +0000 (23:02 +0900)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Aug 2017 00:13:56 +0000 (00:13 +0000)
commit4b38200bfd2d4718730e63cc991e7163ed0d7fd9
tree811cfdfc93c36e986c9c7af30dd107c9499f41b6
parentc3fa6f4ddc4a79f436e842742ae735e617f8522e
cmd/go: correctly quote environment variables in -x output

This fixes the -x output so that when it reports environment variables they
are correctly quoted for later execution by the shell.
Also fix -x output to use the right path to the pack tool, and note when
we are touching a file.

Fixes #21427

Change-Id: I323ef4edf9905b08bc26944b94183d8da2fa9675
Reviewed-on: https://go-review.googlesource.com/55350
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/build.go