8000 The "d" alias on the "Directory" parameter for Get-ChildItem can never work · Issue #14700 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
The "d" alias on the "Directory" parameter for Get-ChildItem can never work #14700
@Jaykul

Description

@Jaykul

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0