Skip to content

Missing - "sort" alias for Sort-Object #827

@shanselman

Description

@shanselman

I use aliases like "sort" in Windows...in PowerShell for Linux do local exes in the path take precedence over aliases? Perhaps "sort" is missing.

There are 155 aliases in PowerShell for Windows and 113 on Ubuntu. That's a pretty big gap.

PS /home/scott/Desktop> Get-Process | Sort VM -desc | Select -first 5 | Format-Table
Sort : The term 'Sort' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15

  • Get-Process | Sort VM -desc | Select -first 5 | Format-Table
  •           ~~~~
    
    • CategoryInfo : ObjectNotFound: (Sort:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

image

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