Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@kovalikp

Description

@kovalikp
Issue body actions

-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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.