Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

two issues I noticed in get-alias

$
0
0

I found two issues with get-alias. Maybe I’m doing something wrong. First one is that the alias of cmdlets are not found.
If I type get-alias ls, the appropriate cmdlet is printed out. If I type get-alias get-children, I get zippo.
I tried filtering the results of get-alias with where-object, but I weirdly doesn’t work.

gal | out-string |? Name -like "Set-Alias"

outputs nothing, but

gal | out-string |? Name -like "sal"

works and print out

Alias sal -> Set-Alias


Viewing all articles
Browse latest Browse all 13067

Trending Articles