aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2023-04-24 16:57:28 -0400
committerMichael Matloob <matloob@golang.org>2023-05-05 14:28:38 +0000
commitf379e78951a405e7e99a60fb231eeedbf976c108 (patch)
treecefba0f27dd213674968f1001b59a79cf4fae287 /src/runtime
parentfe10464358057778732e9c958683039beb64e61a (diff)
downloadgo-f379e78951a405e7e99a60fb231eeedbf976c108.tar.xz
cmd/go: sanitize go env outputs
go env, without any arguments, outputs the environment variables in the form of a script that can be run on the host OS. On Unix, single quote the strings and place single quotes themselves outside the single quoted strings. On windows use the set "var=val" syntax with the quote starting before the variable. Fixes #58508 Change-Id: Iecd379a4af7285ea9b2024f0202250c74fd9a2bd Reviewed-on: https://go-review.googlesource.com/c/go/+/488375 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions