Skip to content

Tab-completion for environmental variable on Linux returns non-existent env. variable #3572

@alexandair

Description

@alexandair

Pressing TAB after $env:P returns env:PATHEXT that doesn't exist on PowerShell Core on Linux on my machine.

Steps to reproduce

PS /home/aleksandar> $env:P

Expected behavior

PS /home/aleksandar> $env:P<tab>
PATH          PSModulePath  PWD

Actual behavior

PS /home/aleksandar> $env:P<tab>
PATH          PSModulePath  PWD           env:PATHEXT

Environment data

PS /home/aleksandar> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.18
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions