KEMBAR78
path completion of unc paths with spaces fails to quote resulting path · Issue #7569 · PowerShell/PowerShell · GitHub
Skip to content

path completion of unc paths with spaces fails to quote resulting path #7569

@msftrncs

Description

@msftrncs

Steps to reproduce

Start a path to a command, in this case,

cd \\svr\

Press CTRL-SPACE (<-EDITED) to bring up completion suggestions, which list all the shares on '\\svr\'.

Select a share that contains a space (notice the highlight fails to clear off entries as you move through the list).

Expected behavior

quotes (') should be added around the UNC path which contains characters that need escaped or quoted.

Actual behavior

Immediately you will notice there is no quote characters being inserted into the completion, and this prevents completing the next step in the path.

Side note, Windows PowerShell 5.1 seems to have the same problem with UNC paths, but at least the highlight works correctly.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.3
PSEdition                      Core
GitCommitId                    v6.0.3
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions