Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdlet aliases not always supported in PSCore #837

Closed
Shashtsoh opened this issue Mar 22, 2021 · 1 comment
Closed

cmdlet aliases not always supported in PSCore #837

Shashtsoh opened this issue Mar 22, 2021 · 1 comment

Comments

@Shashtsoh
Copy link

I ran into an issue while training a colleague today. He's using a Mac running PSCore. We couldn't get past the pester version check until we realized that the "sort" command error it was throwing was for the bash sort command. Per PowerShell/PowerShell#6684 the Sort alias for Sort-Object was removed due to the sort command already being present in bash. We edited his dbachecks.psm1 to change "... | Sort Version ..." to "... | Sort-Object Version..." and were able to get past the error.

Aliases should probably be removed for cross-platform compatibility.

@SQLDBAWithABeard
Copy link
Collaborator

thank you :-) fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants