Terminal changes C: to c: #21463

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

Originally created by @mikedice on GitHub (Apr 1, 2024).

Windows Terminal version

1.19.10573.0

Windows build number

Microsoft Windows [Version 10.0.22631.3296]

Other Software

Visual Studio 2022 Developer Command Prompt v17.9.3

Steps to reproduce

Just open the VS2022 Command prompt in terminal. I see, the root of the C drive (the only drive on the computer) is lower case 'c:' instead of uppercase 'C:'. This breaks an important script used by my team for website development. I have a bug for the JS package filed too here: https://github.com/vitejs/vite/issues/16324

While I understand that changing the case of the root of the drive is not technically wrong on Windows since c:\ and C:\ represent the same thing, it should be avoided if possible because some tools and scripts like Vite will be sensitive to that kind of change. What is the reason for the case change? Can it be avoided?

Expected Behavior

Use the casing for the root drive that is assigned by the operating system.

Actual Behavior

Terminal does not use the casing for the root drive that is assigned by the operating system and this can break tools that are sensitive to such changes.

Originally created by @mikedice on GitHub (Apr 1, 2024). ### Windows Terminal version 1.19.10573.0 ### Windows build number Microsoft Windows [Version 10.0.22631.3296] ### Other Software Visual Studio 2022 Developer Command Prompt v17.9.3 ### Steps to reproduce Just open the VS2022 Command prompt in terminal. I see, the root of the C drive (the only drive on the computer) is lower case 'c:\' instead of uppercase 'C:\'. This breaks an important script used by my team for website development. I have a bug for the JS package filed too here: https://github.com/vitejs/vite/issues/16324 While I understand that changing the case of the root of the drive is not technically wrong on Windows since c:\ and C:\ represent the same thing, it should be avoided if possible because some tools and scripts like Vite will be sensitive to that kind of change. What is the reason for the case change? Can it be avoided? ### Expected Behavior Use the casing for the root drive that is assigned by the operating system. ### Actual Behavior Terminal does not use the casing for the root drive that is assigned by the operating system and this can break tools that are sensitive to such changes.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:45:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21463