Text file src/cmd/go/testdata/script/env_sanitize.txt

     1  env GOFLAGS='$(echo ''cc"''; echo ''OOPS="oops'')'
     2  go env
     3  [GOOS:darwin] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
     4  [GOOS:linux] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
     5  [GOOS:windows] stdout 'set GOFLAGS=\$\(echo ''cc"''; echo ''OOPS="oops''\)'
     6  

View as plain text