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
{{ message }}
Repository navigation
Some system-defined environment variables are undefined #7399
Windows build number: 10.0.20201.0
Windows Terminal version (if applicable): 1.3.2372.0
Any other software? Nope
Steps to reproduce
In Powershell: $Env:UserName
In cmd: echo %UserName%
It looks like this variable is defined here: HKEY_CURRENT_USER\Volatile Environment
There are a couple of other variables defined there that are also undefined: %USERDOMAIN% and %USERDNSDOMAIN%
This is only happing after updating to the preview version of Terminal 1.3. The variables are still defined in Terminal 1.2, and when running pwsh/Windows Powershell/cmd outside of Terminal.
Expected behavior
The variable should contain the current user name.
Activity
DHowett commentedon Aug 25, 2020
Regressed w/ #7243.
zadjii-msft commentedon Aug 25, 2020
Should this block 1.3?
DHowett commentedon Aug 25, 2020
Yeah probably.
DHowett commentedon Aug 25, 2020
Investigating: profile API does EXPLICITLY add these vars (!) so i bet it's my token code
Fix environment block creation
Fix environment block creation (#7401)
Fix environment block creation (#7401)