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
This is (apparently) because the GetEnvironmentStringsW API can return magic environment variables set by the cmd shell which aren't in fact valid environment variables.
They won't be shown by set, and the documentation doesn't say anything about these magic variables, but does say The name of an environment variable cannot include an equal sign (=).
I believe we should consider dropping any environment variable strings returned by GetEnvironmentStringsW which start with the = character, to avoid surprising behavior.
This is what Qt did back in 2013: qt/qtbase@e7a242b, maybe we should check also what some other languages/environments are doing as well, like .NET or Python.