Order of environment variables different in WT #12665

Open
opened 2026-01-31 03:21:32 +00:00 by claunia · 0 comments
Owner

Originally created by @vefatica on GitHub (Feb 20, 2021).

Environment

Microsoft Windows 10 Pro for Workstations
10.0.19042.804 (2009, 20H2)
Windows Terminal Preview
Version: 1.6.10412.0

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

See below.

Expected behavior

Same behavior whether in WT or not

Actual behavior

Behavior different and undesirable when in WT.

In my three Windows shells (CMD, Powershell, TCC), when running in WT

  1. the environment block is ordered differently, and
  2. new environment variables seem to go in the wrong place

Here's a new CMD.EXE running in a Windows console; this is expected behavior.

image

And here's a new CMD.EXE running in Windows Terminal. Note that the variables __VIP (from the user environment) and WT (newly created) are out of place.

image

Originally created by @vefatica on GitHub (Feb 20, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Microsoft Windows 10 Pro for Workstations 10.0.19042.804 (2009, 20H2) Windows Terminal Preview Version: 1.6.10412.0 ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> See below. # Expected behavior Same behavior whether in WT or not <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Behavior different and undesirable when in WT. <!-- What's actually happening? --> In my three Windows shells (CMD, Powershell, TCC), when running in WT 1. the environment block is ordered differently, and 2. new environment variables seem to go in the wrong place Here's a new CMD.EXE running in a Windows console; this is expected behavior. ![image](https://user-images.githubusercontent.com/61856645/108604119-d2372b00-7379-11eb-8afc-8be4a6879d12.png) And here's a new CMD.EXE running in Windows Terminal. Note that the variables __VIP (from the user environment) and WT (newly created) are out of place. ![image](https://user-images.githubusercontent.com/61856645/108604182-335efe80-737a-11eb-9055-ad68560f7ee4.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12665