Launching Windows Terminal with a file path that has a trailing backslash (in quotes) breaks the launch #23015

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

Originally created by @richardhttps on GitHub (Mar 13, 2025).

Windows Terminal version

1.22.10352.0

Windows build number

26100.3476

Other Software

No response

Steps to reproduce

Run
wt -p "PowerShell" -d "C:\Users\"

Expected Behavior

No response

Actual Behavior

[error 2147942667 (0x8007010b) when launching `"C:\Users\Richard\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe"']
Could not access starting directory "C:\Users""
Originally created by @richardhttps on GitHub (Mar 13, 2025). ### Windows Terminal version 1.22.10352.0 ### Windows build number 26100.3476 ### Other Software _No response_ ### Steps to reproduce Run `wt -p "PowerShell" -d "C:\Users\"` ### Expected Behavior _No response_ ### Actual Behavior ``` [error 2147942667 (0x8007010b) when launching `"C:\Users\Richard\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe"'] Could not access starting directory "C:\Users"" ```
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:29:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23015