Skip to content

PSDesiredStateConfiguration.psm1 has call to sort which is a native linux command and not an alias #2520

@vors

Description

@vors

In PSDSC.psm1 (from nuget package 1.0.0-alpha01), on line 1873, there is a call to sort which should be sort-object. sort is not an alias on unix, it's a coreutil command.

$moduleInfos = Get-Module -ListAvailable -FullyQualifiedName $moduleToImport | sort -Property Version -Descending

Not sure how it manages to work as is.
@johnkord @nitinbps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DSCDesired State Configuration issuesResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions