"Open in Terminal" option does not work for directories with square brackets in the name #23335

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

Originally created by @abhishekd-1 on GitHub (Jun 4, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

  1. Create a folder called "Test[123]" in Windows Explorer
  2. Open the folder
  3. Shift+Right click any blank space
  4. Choose "Open in Terminal"

Expected Behavior

Terminal launches with the directory as: "Test[123]"

Actual Behavior

Terminal launches with the directory as: "C:\WINDOWS\System32\WindowsPowerShell\v1.0"

Originally created by @abhishekd-1 on GitHub (Jun 4, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.26100.0 ### Other Software _No response_ ### Steps to reproduce 1. Create a folder called "Test[123]" in Windows Explorer 2. Open the folder 3. Shift+Right click any blank space 4. Choose "Open in Terminal" ### Expected Behavior Terminal launches with the directory as: "Test[123]" ### Actual Behavior Terminal launches with the directory as: "C:\WINDOWS\System32\WindowsPowerShell\v1.0"
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:39:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23335