]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document 'go run' exit codes
authorYury Smolsky <yury@smolsky.by>
Fri, 16 Feb 2018 12:56:03 +0000 (14:56 +0200)
committerIan Lance Taylor <iant@golang.org>
Sat, 17 Feb 2018 18:31:32 +0000 (18:31 +0000)
Updated docs that go run does not return the exit code of
the compiled binary.

Fixes #23716

Change-Id: Ib85459974c4c6d2760ddba957ef711628098661f
Reviewed-on: https://go-review.googlesource.com/94795
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/run/run.go

index 84211fd9cc01b6ecd02e94aec9136f2eeae6dc37..2788a9eef62c4c482aca32e649031c4eef3a5b10 100644 (file)
 // cross-compiled programs when a simulator or other execution method is
 // available.
 //
+// The exit status of Run is not the exit status of the compiled binary.
+//
 // For more about build flags, see 'go help build'.
 //
 // See also: go build.
index ce24748f4e33af58498ab15b7de6dbb9c7ff1b50..6ff20900953a5e72fc3713a0d8b4d849ca145ee8 100644 (file)
@@ -34,6 +34,8 @@ for example 'go_nacl_386_exec a.out arguments...'. This allows execution of
 cross-compiled programs when a simulator or other execution method is
 available.
 
+The exit status of Run is not the exit status of the compiled binary.
+
 For more about build flags, see 'go help build'.
 
 See also: go build.