Prerequisites
Steps to reproduce
The -RelativeBasePath string parameter qualifies the -Relative switch.
Currently, -RelativeBasePath is ignored if -Relative isn't also specified.
The better solution is for -RelativeBasePath to imply -Relative, analogous to how, with Get-ChildItem, -Depth implies -Recurse.
Update: Turns out that -RelativeBasePath without -Relative does have a use case, albeit only with relative input paths; see comments below.
Resolve-Path $Home -RelativeBasePath / # -Relative not specified; should be implied
Expected behavior
E.g., on Windows:
Actual behavior
E.g., on Windows:
That is, -RelativeBasePath was quietly ignored.
Error details
No response
Environment data
Visuals
No response