Skip to content

Get-ChildItem (-Recurse) and (-Recurse -Name) return inconsistent #20129

@OwnageIsMagic

Description

@OwnageIsMagic
Get-ChildItem ../.. -Recurse -Depth 1 -Name | gm -View Extended

Get-ChildItem ../.. -Name | gm -View Extended

   TypeName: System.String

Name          MemberType   Definition
----          ----------   ----------
PSChildName   NoteProperty string PSChildName=.clang-format
PSDrive       NoteProperty PSDriveInfo PSDrive=C
PSIsContainer NoteProperty bool PSIsContainer=False
PSParentPath  NoteProperty string PSParentPath=Microsoft.PowerShell.Core\FileSystem::C:\source\runtime2
PSPath        NoteProperty string PSPath=Microsoft.PowerShell.Core\FileSystem::C:\source\runtime2\.clang-format
PSProvider    NoteProperty ProviderInfo PSProvider=Microsoft.PowerShell.Core\FileSystem

returned strings missing extended properties.

Was also mentioned here #9119 (comment)

UPD:
#8995 suggests that maybe it should not be fixed as it would negatively affect perf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions