...

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

Documentation: cmd/go/testdata/script

     1env GOFLAGS='$(echo ''cc"''; echo ''OOPS="oops'')'
     2go 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''\)'

View as plain text