Does anyone know why the following command treats the dollar sign as a wildcard instead of a literal:
Get-Alias -Name ?
Is there a way to use an escape character to treat the dollar sign as a literal in the previous command? It causes all aliases that have a name with a single character to be returned instead of only the alias “?” (Where-Object).
Expected behavior would be the same as the following:
Get-Alias | Where-Object Name -eq ?
Just something I ran into and wanted to see what others thought about this.