Fixes #70509
Change-Id: I62952c0ac5de456742b7bee3552a0d90238bfde5
Reviewed-on: https://go-review.googlesource.com/c/go/+/631075
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
toolCmd := &exec.Cmd{
Path: cmdline[0],
- Args: cmdline[1:],
+ Args: cmdline,
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
stdout 'my name is: bar'$GOEXE
! stdout 'a.out'
+# Third run: with arguments
+# https://go.dev/issue/70509
+go tool bar --baz
+stdout 'my name is: bar'$GOEXE
+! stdout 'a.out'
+
-- go.mod --
module example.com/foo