"Open in Terminal" from Explorer context menu doesn't work when path contains brackets "[ ]" #20533

Closed
opened 2026-01-31 07:16:45 +00:00 by claunia · 1 comment
Owner

Originally created by @ghost on GitHub (Sep 23, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.0

Other Software

PowerShell 5.1.22621.1778

Steps to reproduce

  1. Navigate to a folder containing brackets (i.e. G:\test\test [doesnt work]).
  2. Right-click on the folder to open the Explorer's context menu
  3. Click on "Open in Terminal"

Screenshot 2023-09-23 181217

Expected Behavior

PowerShell opens and automatically navigates to the chosen folder

Screenshot 2023-09-23 181833

Actual Behavior

PowerShell opens but navigates to the directory of the PowerShell executable

Screenshot 2023-09-23 181234

Originally created by @ghost on GitHub (Sep 23, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.0 ### Other Software PowerShell 5.1.22621.1778 ### Steps to reproduce 1. Navigate to a folder containing brackets (i.e. `G:\test\test [doesnt work]`). 2. Right-click on the folder to open the Explorer's context menu 3. Click on "Open in Terminal" ![Screenshot 2023-09-23 181217](https://github.com/microsoft/terminal/assets/23118383/dfcd927d-662c-476f-99ee-bdcb85fa4191) ### Expected Behavior PowerShell opens and automatically navigates to the chosen folder ![Screenshot 2023-09-23 181833](https://github.com/microsoft/terminal/assets/23118383/7992d605-975d-4af8-bc82-a4d2335858f2) ### Actual Behavior PowerShell opens but navigates to the directory of the PowerShell executable ![Screenshot 2023-09-23 181234](https://github.com/microsoft/terminal/assets/23118383/c9b4ae30-0973-4740-86a4-76cac94963b4)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:16:45 +00:00
Author
Owner

@ghost commented on GitHub (Sep 24, 2023):

Update to PS 7 solved the issue.

@ghost commented on GitHub (Sep 24, 2023): Update to PS 7 solved the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20533