"Open with Windows Terminal" context menu starts Windows Terminal at wrong path #15734

Open
opened 2026-01-31 04:46:58 +00:00 by claunia · 0 comments
Owner

Originally created by @namorzyny on GitHub (Oct 29, 2021).

Windows Terminal version (or Windows build number)

10.0.22000.0, 1.11.2921.0

Other Software

No response

Steps to reproduce

Create a folder named [xxxx and [xxxx], open them, and use the "Open with Windows Terminal" context menu to open Windows Terminal.

Expected Behavior

No response

Actual Behavior

If you start Windows Terminal with the "Open with Windows Terminal" option in a folder that name begins with [, it will switch the current directory to C:\, or a folder that name begins with [ and ends with ] it will switch the current directory to C:\Windows\System32\WindowsPowerShell\v1.0.

Originally created by @namorzyny on GitHub (Oct 29, 2021). ### Windows Terminal version (or Windows build number) 10.0.22000.0, 1.11.2921.0 ### Other Software _No response_ ### Steps to reproduce Create a folder named `[xxxx` and `[xxxx]`, open them, and use the "Open with Windows Terminal" context menu to open Windows Terminal. ### Expected Behavior _No response_ ### Actual Behavior If you start Windows Terminal with the "Open with Windows Terminal" option in a folder that name begins with `[`, it will switch the current directory to `C:\`, or a folder that name begins with `[` and ends with `]` it will switch the current directory to `C:\Windows\System32\WindowsPowerShell\v1.0`.
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 04:46:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15734