You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: