Open In Terminal feature works incorrectly if there is '[' or '[]' in the folder path. #22059

Closed
opened 2026-01-31 08:02:19 +00:00 by claunia · 1 comment
Owner

Originally created by @Yaroslav308 on GitHub (Aug 6, 2024).

Windows Terminal version

1.20.11781.0

Windows build number

10.0.22635.0

Other Software

No response

Steps to reproduce

  1. create a folder whose name contains '[' or '[]'.
  2. right-click folder
  3. select open-in-terminal
  4. terminal opens, but not in the directory selected

Expected Behavior

No response

Actual Behavior

If the path contains '[', the terminal opens in the root directory of the system disk.
If the path contains '[]', the terminal opens in 'C:WindowsPowerShell\System32\WindowsPowerShell\v1.0>'.

Originally created by @Yaroslav308 on GitHub (Aug 6, 2024). ### Windows Terminal version 1.20.11781.0 ### Windows build number 10.0.22635.0 ### Other Software _No response_ ### Steps to reproduce 1. create a folder whose name contains '[' or '[]'. 2. right-click folder 3. select open-in-terminal 4. terminal opens, but not in the directory selected ### Expected Behavior _No response_ ### Actual Behavior If the path contains '[', the terminal opens in the root directory of the system disk. If the path contains '[]', the terminal opens in 'C:WindowsPowerShell\System32\WindowsPowerShell\v1.0>'.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:02:19 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Aug 6, 2024):

We've found some similar issues:

  • #11149 , similarity score: 86%
  • #11652 , similarity score: 85%
  • #16706 , similarity score: 84%
  • #16024 , similarity score: 84%
  • #14065 , similarity score: 84%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@similar-issues-ai[bot] commented on GitHub (Aug 6, 2024): We've found some similar issues: - #11149 , similarity score: 86% - #11652 , similarity score: 85% - #16706 , similarity score: 84% - #16024 , similarity score: 84% - #14065 , similarity score: 84% If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue. > Note: You can give me feedback by 👍 or 👎 this comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22059