Skip to content

Auto-completion doesn't work for non build-in commands and path with [] #14015

@Nino-kun

Description

@Nino-kun

Path auto-completion doesn't work for non build-in commands if path contain square brackets symbols.

Steps to reproduce

New-Item -Type File -Name '[test].txt'
Copy-Item '``[ + <TAB> work and became Copy-Item '.\`[test`].txt'
notepad  '``[ + <TAB> doesn't work

Expected behavior

TAB-key auto-complete path for any command.

Actual behavior

Path auto-completion doesn't work if command not pwsh build-in.

Environment data

PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19042
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

    Area-FileSystem-Providerspecific to the FileSystem providerIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions