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

Alias like "Sort" or "Select" not working on mac os #1

Closed
szawacki opened this issue Jun 23, 2017 · 0 comments
Closed

Alias like "Sort" or "Select" not working on mac os #1

szawacki opened this issue Jun 23, 2017 · 0 comments

Comments

@szawacki
Copy link

Alias are not working on mac os. Running the cmdlet "Connect-SGWServer -Name $servername -Credential $credential -Insecure" produces the following error.

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 /usr/local/microsoft/powershell/6.0.0-beta.2/Modules/StorageGRID-Webscale/4.0.1/StorageGRID-Webscale.psm1:159 char:59
+ ...    $APIVersion = (Get-SGWVersions -Uri "https://$Name" | Sort | selec ...

    + CategoryInfo          : ObjectNotFound: (Sort:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


This is a known issue, see: PowerShell/vscode-powershell#714
Replacing with the long form sort-object or select-object should fix the problem.

Version information:

Name                           Value                                                                                                                 
----                           -----                                                                                                                 
PSVersion                      6.0.0-beta                                                                                                            
PSEdition                      Core                                                                                                                  
BuildVersion                   3.0.0.0                                                                                                               
CLRVersion                                                                                                                                           
GitCommitId                    v6.0.0-beta.2                                                                                                         
OS                             Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64        
Platform                       Unix                                                                                                                  
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                               
PSRemotingProtocolVersion      2.3                                                                                                                   
SerializationVersion           1.1.0.1                                                                                                               
WSManStackVersion              3.0   
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

1 participant