[BUG]: Path env variable does not function properly with USERPROFILE environment variable #21308

Open
opened 2026-01-31 07:39:27 +00:00 by claunia · 0 comments
Owner

Originally created by @Haiderahandali on GitHub (Feb 25, 2024).

Windows Terminal version

1.18.10301.0

Windows build number

Microsoft Windows [Version 10.0.22631.3155]

Other Software

The issue happens as well in conhost

Steps to reproduce

please watch the attached video, I am not sure how to reproduce it on others machines:

https://github.com/microsoft/terminal/assets/53301143/356f9f48-e453-4a93-aab1-d2cec91e8c40

Expected Behavior

To work the same way it works with absolute path (if I replace USERPROFILE with my User's name, it works)

Actual Behavior

The PATH env does not seem to recognize Paths with %USERPROFILE% insides them.

Originally created by @Haiderahandali on GitHub (Feb 25, 2024). ### Windows Terminal version 1.18.10301.0 ### Windows build number Microsoft Windows [Version 10.0.22631.3155] ### Other Software The issue happens as well in conhost ### Steps to reproduce please watch the attached video, I am not sure how to reproduce it on others machines: https://github.com/microsoft/terminal/assets/53301143/356f9f48-e453-4a93-aab1-d2cec91e8c40 ### Expected Behavior To work the same way it works with absolute path (if I replace USERPROFILE with my User's name, it works) ### Actual Behavior The PATH env does not seem to recognize Paths with %USERPROFILE% insides them.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:39:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21308