Skip to content

Resolve-Path: Rename -RelativeBasePath to -BasePath #20937

Open

Description

Summary of the new feature / enhancement

Consider renaming -RelativeBasePath to -BasePath (while keeping the original name as an alias so as to preserve backward compatibility), which has the following advantages:

# WISHFUL THINKING:  Use of -BasePath instead of -RelativePath

# With -Relative
# Get the relative path from C:\Windows to, say, C:\Users\jdoe -> '..\Users\jdoe'
Resolve-Path $HOME -Relative -BasePath C:\Windows

# Without -Relative:
# Get the absolute paths of items named Prog* in C:\
# -> [System.Management.Automation.PathInfo] instances for the following full paths:
#   'C:\Program Files'
#   'C:\Program Files (x86)'
Resolve-Path Prog* -BasePath C:\

Proposed technical implementation details (optional)

No response

Activity

  1. added
    Issue-Enhancement
    Needs-Triage
    on Dec 15, 2023
  2. StevenBucher98 commented on Dec 18, 2023

    @StevenBucher98
    Collaborator

    Marking as up for grabs as this is something I don't believe the team has the capacity for, I will let the @PowerShell/wg-powershell-cmdlets discuss but would say we would welcome a PR for adding this enhancement.

  3. added
    Up-for-Grabs
    on Dec 18, 2023
  4. added
    In-PR
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssue-EnhancementNeeds-TriageUp-for-GrabsWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions