2009-07-27

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
temNotFoundException
+ FullyQualifiedErrorId : ItemNotFoundException,Microsoft.PowerShell.Comma
nds.GetAliasCommand

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?

Xah
∑ http://xahlee.org/

No comments:

Post a Comment