Launching with --startingDirectory does not work for "." in v1.23 - affects VSCode #22875

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

Originally created by @rkodey on GitHub (Feb 8, 2025).

Windows Terminal version

1.23.10353.0

Windows build number

10.0.19045.5371

Other Software

  • Windows Terminal in portable mode using ".portable"
  • This bug affects VSCode, when it launches the external terminal.
    • But, VSCode is not required, as shown below

Steps to reproduce

See basic configuration settings.json in comment below
Open a command prompt

cd \Users

Expected Behavior

Version 1.22.10352.0 works as expected.

cd \Users
command-line Opens Terminal In
wt.exe C:\Users
wt.exe -d . C:\Users
wt.exe -d "." C:\Users
wt.exe -d "C:\Users" C:\Users
wt.exe --startingDirectory . C:\Users
wt.exe --startingDirectory "." C:\Users
wt.exe --startingDirectory "C:\Users" C:\Users

Actual Behavior

Version 1.23.10353.0 shows the bug.

cd \Users
command-line Opens Terminal In
wt.exe C:\WINDOWS\system32
wt.exe -d . C:\WINDOWS\system32
wt.exe -d "." C:\WINDOWS\system32
wt.exe -d "C:\Users" C:\Users
wt.exe --startingDirectory . C:\WINDOWS\system32
wt.exe --startingDirectory "." C:\WINDOWS\system32
wt.exe --startingDirectory "C:\Users" C:\Users
Originally created by @rkodey on GitHub (Feb 8, 2025). ### Windows Terminal version 1.23.10353.0 ### Windows build number 10.0.19045.5371 ### Other Software - Windows Terminal in portable mode using ".portable" - **This bug affects VSCode**, when it launches the external terminal. - But, VSCode is not required, as shown below ### Steps to reproduce See basic configuration settings.json in comment below Open a command prompt ``` cd \Users ``` ### Expected Behavior > Version **1.22.10352.0** works as expected. ``` cd \Users ``` command-line | Opens Terminal In --- | --- wt.exe | C:\Users wt.exe -d . | C:\Users wt.exe -d "." | C:\Users wt.exe -d "C:\Users" | C:\Users wt.exe --startingDirectory . | C:\Users wt.exe --startingDirectory "." | C:\Users wt.exe --startingDirectory "C:\Users" | C:\Users ### Actual Behavior > Version **1.23.10353.0** shows the bug. ``` cd \Users ``` command-line | Opens Terminal In --- | --- wt.exe | C:\WINDOWS\system32 wt.exe -d . | C:\WINDOWS\system32 wt.exe -d "." | C:\WINDOWS\system32 wt.exe -d "C:\Users" | C:\Users wt.exe --startingDirectory . | C:\WINDOWS\system32 wt.exe --startingDirectory "." | C:\WINDOWS\system32 wt.exe --startingDirectory "C:\Users" | C:\Users
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:25:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22875