terminal program can't accpet the folder name include [] in right button #21238

Closed
opened 2026-01-31 07:37:21 +00:00 by claunia · 2 comments
Owner

Originally created by @wenbortsai on GitHub (Feb 14, 2024).

Windows Terminal version

1.20.10303.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

File Manager open the folder name and use right button of the mouse
then click terminal open, but it can't accept the folder name include [] and
will open in the default path of the user.
for example: The folder name is [test]

Expected Behavior

Terminal should open in the focus folder's path

Actual Behavior

Terminal open in the default path of the user(C:\WINDOWS\System32\WindowsPowerShell\v1.0).

Originally created by @wenbortsai on GitHub (Feb 14, 2024). ### Windows Terminal version 1.20.10303.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce File Manager open the folder name and use right button of the mouse then click terminal open, but it can't accept the folder name include [] and will open in the default path of the user. for example: The folder name is [test] ### Expected Behavior Terminal should open in the focus folder's path ### Actual Behavior Terminal open in the default path of the user(C:\WINDOWS\System32\WindowsPowerShell\v1.0).
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:37:22 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Feb 14, 2024):

Thanks for filing. This is a known bug in Windows PowerShell 5.1. See https://github.com/microsoft/terminal/issues/11149#issuecomment-914397136. Sorry about that! I believe this is fixed in PowerShell 7+.

/dup #11149

@carlos-zamora commented on GitHub (Feb 14, 2024): Thanks for filing. This is a known bug in Windows PowerShell 5.1. See https://github.com/microsoft/terminal/issues/11149#issuecomment-914397136. Sorry about that! I believe this is fixed in PowerShell 7+. /dup #11149
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 14, 2024):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 14, 2024): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21238