Skip to content
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

Powershell doesn't inherit new PATH after applying it outside #13639

Closed
murder opened this issue Jul 31, 2022 · 2 comments
Closed

Powershell doesn't inherit new PATH after applying it outside #13639

murder opened this issue Jul 31, 2022 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@murder
Copy link

murder commented Jul 31, 2022

Windows Terminal version

1.14.1963.0

Windows build number

10.0.22000.0

Other Software

PowerShell 7.2.5
PowerShell 7.3.0-preview.6

Steps to reproduce

  1. Open Windows Terminal
  2. Open a new Powershell session in Windows Terminal
  3. Change the 'User variables' or 'System variables' Path environment variable by going through %WINDIR%\system32\SystemPropertiesAdvanced.exe 'Environment Variables...' option or even straight to regedit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path key
  4. Apply it
  5. Bring up a new Powershell tab in Terminal, whichever Powershell version you wish
  6. Path is the same - the new path is not re-read

Expected Behavior

I expected that NEW tabs would of course re-read NEW configurations, especially regarding environment variables

In order to make it work, you have to kill the entire Terminal process (and all tabs that you are working on), reload Terminal, and then you will notice that the new environment variable was inherited.

Actual Behavior

Nothing.

In order to make it work, you have to kill the entire Terminal process (and all tabs that you are working on), reload Terminal, and then you will notice that the new environment variable was inherited.

@murder murder added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jul 31, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 31, 2022
@zadjii-msft
Copy link
Member

/dup #1125

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
@ghost
Copy link

ghost commented Aug 1, 2022

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!

@ghost ghost closed this as completed Aug 1, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 1, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants