-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables not updated when creating a new tab. #11938
Comments
In this example, you'd expect the variables set in 1 wouldn't apply to the cmd spawned in 3. That's basically what's happening here in the Terminal.
|
Terminal already calls Any mention of setx.exe has to be accompanied by a disclaimer that it should never be used on its own to modify the system or per-user "PATH". It can be combined with Using PowerShell is easier, but if "PATH" is a |
Hi @zadjii-msft, I understood your nice explanation, that's correct. But I probably didn't explain the issue well enough: I'm using the The environment variables are modified in Windows's "Environment Variables" dialog. And once these variables are modified, I open a new command prompt tab. I expect the new command prompt tab to inherit its environment variables from the current state, but changes that occurred since the terminal was started are ignored. Anyway, you mentioned issue #1125, it looks exactly like my scenario. Good to know you have this under your radar, thanks a lot Mike! |
Calling |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Terminal version
1.11.2921.0
Windows build number
10.0.19042.1348
Other Software
No response
Steps to reproduce
Expected Behavior
The environment variable value displayed in the tab opened AFTER creating/editing the variable is the current one.
Actual Behavior
The environment variable value displayed in the tab opened AFTER creating/editing the variable is NOT the current one.
The text was updated successfully, but these errors were encountered: