When the name of a folder have "[" , then "open with terminal" (use the right mouse button) in Explorer , wrong ! #15179

Closed
opened 2026-01-31 04:30:43 +00:00 by claunia · 5 comments
Owner

Originally created by @k9fvm on GitHub (Sep 12, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0, 1.10.2383.0

Other Software

No response

Steps to reproduce

The Terminal's Default : "Windows PowerShell"

Create 4 folders:
"D:\a[bc]"
"D:\a[bc"
"D:\abc"
"D:\abc]"

Click them one by one, "open with terminal" (use the right mouse button) in Explorer

Then you well see the problem.

If holding "Shift" ,click the right mouse button ,and "open with PowerShell" ,it is no problem.
If the Terminal's Default is "CMD" , it is no problem.

Expected Behavior

No response

Actual Behavior

PS C:\windows\System32\WindowsPowerShell\v1.0>
PS C:>
PS D:\abc>
PS D:\abc]>

Originally created by @k9fvm on GitHub (Sep 12, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0, 1.10.2383.0 ### Other Software _No response_ ### Steps to reproduce The Terminal's Default : "Windows PowerShell" Create 4 folders: "D:\a[bc]" "D:\a[bc" "D:\abc" "D:\abc]" Click them one by one, "open with terminal" (use the right mouse button) in Explorer Then you well see the problem. If holding "Shift" ,click the right mouse button ,and "open with PowerShell" ,it is no problem. If the Terminal's Default is "CMD" , it is no problem. ### Expected Behavior _No response_ ### Actual Behavior PS C:\windows\System32\WindowsPowerShell\v1.0> PS C:\> PS D:\abc> PS D:\abc]>
claunia added the Resolution-Duplicate label 2026-01-31 04:30:43 +00:00
Author
Owner

@momiforgotthesemicolon commented on GitHub (Sep 12, 2021):

Does symbol ']' is even allowed to be inside the windows directory path? As far as I am concerned this symbol is invalid :)

@momiforgotthesemicolon commented on GitHub (Sep 12, 2021): Does symbol ']' is even allowed to be inside the windows directory path? As far as I am concerned this symbol is invalid :)
Author
Owner

@k9fvm commented on GitHub (Sep 12, 2021):

Does symbol ']' is even allowed to be inside the windows directory path? As far as I am concerned this symbol is invalid :)

It is allowed in Windows10 . Just click the right mouse button in Explorer , and create a folder , then name it "[abc]".
abc

@k9fvm commented on GitHub (Sep 12, 2021): > > > Does symbol ']' is even allowed to be inside the windows directory path? As far as I am concerned this symbol is invalid :) It is allowed in Windows10 . Just click the right mouse button in Explorer , and create a folder , then name it "[abc]". ![abc](https://user-images.githubusercontent.com/90003417/132990985-f1dfb37d-3e10-4ddf-ac6f-f409ca5d5c51.PNG)
Author
Owner

@elsaco commented on GitHub (Sep 12, 2021):

Could be related to #11149

@elsaco commented on GitHub (Sep 12, 2021): Could be related to #11149
Author
Owner

@zadjii-msft commented on GitHub (Sep 13, 2021):

Yep, this is /dup #11149. This is a bug in Windows PowerShell (5.1) -- sorry! There's nothing that can be done about that. It does not handle directories with special characters in them properly.

@zadjii-msft commented on GitHub (Sep 13, 2021): Yep, this is /dup #11149. This is a bug in Windows PowerShell (5.1) -- sorry! There's nothing that can be done about that. It does not handle directories with special characters in them properly.
Author
Owner

@ghost commented on GitHub (Sep 13, 2021):

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!

@ghost commented on GitHub (Sep 13, 2021): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15179