Powershell won't CD into or start in folders containing square brackets [ ] #23300

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

Originally created by @regs01 on GitHub (May 28, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.22621.4317

Other Software

No response

Steps to reproduce

When powershell is launched from another application in directory containing square brackets it's always starting in PS C:\Windows\System32\WindowsPowerShell\v1.0>. Can't even switch with CD into them. Square brackets are not illegal symbols in Windows.

cmd is correctly starting in a working directory.

Expected Behavior

Should start in proper working directory.

Actual Behavior

Always starting in PS C:\Windows\System32\WindowsPowerShell\v1.0>

Originally created by @regs01 on GitHub (May 28, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.22621.4317 ### Other Software _No response_ ### Steps to reproduce When powershell is launched from another application in directory containing square brackets it's always starting in `PS C:\Windows\System32\WindowsPowerShell\v1.0>`. Can't even switch with `CD` into them. Square brackets are not illegal symbols in Windows. `cmd` is correctly starting in a working directory. ### Expected Behavior Should start in proper working directory. ### Actual Behavior Always starting in `PS C:\Windows\System32\WindowsPowerShell\v1.0>`
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:38:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23300