Select-String doc bug (typo) - by just4a

Status : 

 


1
0
Sign in
to vote
ID 774492 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 12/16/2012 4:37:43 PM
Access Restriction Public

Description

There is a small typo in the help doc of the Select-String Cmdlet:
     'The "sst" alias for the Select-String cmdlet was introduced in Windows PowerShell 3.0.'
{ Help Select-String -Full | Select-String 'notes' -Context 0,4 } 

-----------------------------------------------------------------------------------------------------------
PS C:\> Get-Alias -Name sls

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Alias           sls -> Select-String


PS C:\>
PS C:\>
PS C:\>
PS C:\>
PS C:\> Help Select-String -Full | Select-String 'notes' -Context 0,4

> NOTES


         Select-String is like the Grep command in UNIX and the FindStr command in Windows.
---->  The "sst" alias for the Select-String cmdlet was introduced in Windows PowerShell 3.0.


PS C:\>
PS C:\>
PS C:\>
PS C:\>
PS C:\> Get-Alias -Name sst
Get-Alias : This command cannot find a matching alias because an alias with the name 'sst' does not exist.
At line:1 char:1
+ Get-Alias -Name sst
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (sst:String) [Get-Alias], ItemNotFoundException
    + FullyQualifiedErrorId : ItemNotFoundException,Microsoft.PowerShell.Commands.GetAliasCommand

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      3.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.18010
BuildVersion                   6.2.9200.16434
PSCompatibleVersions           {1.0, 2.0, 3.0}
PSRemotingProtocolVersion      2.2
Sign in to post a comment.