Skip to content

wt.exe startingDirectory argument fails with path containing spaces and a trailing backslash #19362

@stuerp

Description

@stuerp

Windows Terminal version

Preview_1.24.2372.0_x64

Windows build number

10.0.26100.4946

Other Software

PowerShell 7.5.3 as default profile

Steps to reproduce

Fails to set the starting directory (note the trailing backslash):

wt.exe --startingDirectory "c:\A\B B\"

Successfully sets the starting directory:

wt.exe --startingDirectory "c:\A\B B"

Expected Behavior

The starting directory should be set in both cases.

Actual Behavior

[error 2147942402 (0x80070002) when launching `B\']
The system cannot find the file specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions