powershell get-alias doesnt work for get-help?

I have a little question about aliasse.

When i do:

get-alias -name get-help

i expect it to return “help”, but i got this error instead:

Get-Alias : This command cannot find a matching alias because alias with defini
tion 'get-help' do not exist.
At line:1 char:10
+ get-alias <<<< -definition get-help
+ CategoryInfo : ObjectNotFound: (get-help:String) [Get-Alias], I
+ FullyQualifiedErrorId : ItemNotFoundException,Microsoft.PowerShell.Comma

I tried using

get-alias -definition get-help

but same result.

If i just type “get-alias”, then “help” is returned as one of the item, so apparantly help is a alias to get-help.

What's going on?

∑ http://xahlee.org/

No comments:

Post a Comment