If you look at the parameters of Get-ChildItem, there's an alias:
> (Get-Command Get-ChildItem).Parameters["Directory"].Aliases
ad
d
The problem is that the d alias CANNOT ever work, because the Directory parameter is dynamic, and Get-ChildItem already has a parameter that starts with "d" (the "Depth" parameter), so the -d switch always gets bound to the -Depth parameter (and the user gets prompted for an actual value).
Can we remove that alias, since it's just confusing users?
If you look at the parameters of Get-ChildItem, there's an alias:
The problem is that the
dalias CANNOT ever work, because theDirectoryparameter is dynamic, andGet-ChildItemalready has a parameter that starts with "d" (the "Depth" parameter), so the-dswitch always gets bound to the-Depthparameter (and the user gets prompted for an actual value).Can we remove that alias, since it's just confusing users?