You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that, on Windows, os.Clearenv sets all variables to "" rather than actually unsetting them (as it does on Linux and Unix based other platforms).
I can submit a patch for this, but wanted to clarify if it was expected behavior.
What version of Go are you using (go version)?
go version go1.7.3 windows/386
What operating system and processor architecture are you using (go env)?
The Go 1.8 dev cycle is closed for the release freeze, though, so it might not make it until Go 1.9.
bradfitz
changed the title
os.Clearenv sets variables to "" rather than deleting them on Windows
os: Clearenv sets variables to "" rather than deleting them on Windows
Nov 13, 2016
It appears that, on Windows,
os.Clearenv
sets all variables to""
rather than actually unsetting them (as it does on Linux and Unix based other platforms).I can submit a patch for this, but wanted to clarify if it was expected behavior.
What version of Go are you using (
go version
)?go version go1.7.3 windows/386
What operating system and processor architecture are you using (
go env
)?windows/386
What did you do?
What did you expect to see?
What did you see instead?
On linux/amd64:
The text was updated successfully, but these errors were encountered: