Skip to content

Possible regression: Whitespace in path and trailing backslash #26422

@sectra-he-gra

Description

@sectra-he-gra

Prerequisites

Steps to reproduce

  1. Create a folder (e.g. C:\temp\a b with a whitespace in it
  2. Open an executable (e.g. explorer.exe) on the path
PS C:\> explorer.exe 'C:\temp\a b\'

The above is what you get from TAB completion

See also e.g. #4358 for example with a custom exe

Expected behavior

explorer opens on correct path `C:\temp\a b`

Actual behavior

explorer opens on a default path e.g. `~\Documents`

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions