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. 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.

  2. added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Dec 18, 2023
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-PRIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions