-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
-ExpandPropertyargument completion ofSelect-Objectdoes not behave the same way-Propertyparameter 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
Expected behavior
Actual behavior
Environment data