aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec')
-rw-r--r--src/os/exec/read3.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os/exec/read3.go b/src/os/exec/read3.go
index 8327d73e51..3ccf1cacc8 100644
--- a/src/os/exec/read3.go
+++ b/src/os/exec/read3.go
@@ -20,7 +20,6 @@ import (
"os/exec"
"os/exec/internal/fdtest"
"runtime"
- "strings"
)
func main() {
@@ -81,7 +80,7 @@ func main() {
cmd := exec.Command(ofcmd, args...)
out, err := cmd.CombinedOutput()
if err != nil {
- fmt.Fprintf(os.Stderr, "%s failed: %v\n", strings.Join(cmd.Args, " "), err)
+ fmt.Fprintf(os.Stderr, "%#q failed: %v\n", cmd, err)
}
fmt.Printf("%s", out)
os.Exit(1)