What runs in PowerShell when I run the "alias" command?
Is it an alias? A function? It appears that "alias" is itself an alias to the get-alias command. Yet alias itself does not show up in the list returned by get-alias. Is it being stripped out?
(This is out of curiosity, I'm not planning on re-aliasing "alias" or anything crazy.)
In powershell, if a command does not immediately match something in the command search path, it will prepend it with "get-" and try again. So when you type "alias," powershell will retry with "get-alias" if the former is not matched against a command.
-Oisin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With