Skip to content

Select-Object -ExpandProperty does not complete argument correctly #3416

@kovalikp

Description

@kovalikp

-ExpandProperty argument completion of Select-Object does not behave the same way -Property parameter does. In first case it just retrieves whatever is on current path, in later it will properly offer properties of result from the pipe.

Steps to reproduce

Get-ChildItem . | Select-Object -ExpandProperty <TAB>

Expected behavior

Get-ChildItem . | Select-Object -ExpandProperty Attributes

Actual behavior

Get-ChildItem . | Select-Object -ExpandProperty .\assets\

Environment data

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions