Title: `Resolve-Path`: Rename `-RelativeBasePath` to `-BasePath` · Issue #20937 · PowerShell/PowerShell · GitHub
Open Graph Title: `Resolve-Path`: Rename `-RelativeBasePath` to `-BasePath` · Issue #20937 · PowerShell/PowerShell
X Title: `Resolve-Path`: Rename `-RelativeBasePath` to `-BasePath` · Issue #20937 · PowerShell/PowerShell
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: It doesn't tempt users ...
Open Graph 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 follo...
X 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 follo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/20937
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Resolve-Path`: Rename `-RelativeBasePath` to `-BasePath`","articleBody":"### Summary of the new feature / enhancement\n\nConsider renaming `-RelativeBasePath` to `-BasePath` (while keeping the original name as an _alias_ so as to preserve backward compatibility), which has the following advantages:\r\n\r\n* It doesn't tempt users to assume that the parameter only works in the context of the `-Relative` switch.\r\n* In conjunction with that, it doesn't lead users to expect that use of the parameter should _imply_ `-Relative` - see #20920\r\n* A distinct name makes tab-completion easier.\r\n\r\n```powershell\r\n# WISHFUL THINKING: Use of -BasePath instead of -RelativePath\r\n\r\n# With -Relative\r\n# Get the relative path from C:\\Windows to, say, C:\\Users\\jdoe -> '..\\Users\\jdoe'\r\nResolve-Path $HOME -Relative -BasePath C:\\Windows\r\n\r\n# Without -Relative:\r\n# Get the absolute paths of items named Prog* in C:\\\r\n# -> [System.Management.Automation.PathInfo] instances for the following full paths:\r\n# 'C:\\Program Files'\r\n# 'C:\\Program Files (x86)'\r\nResolve-Path Prog* -BasePath C:\\\r\n```\n\n### Proposed technical implementation details (optional)\n\n_No response_","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2023-12-15T22:14:15Z","url":"https://github.com/PowerShell/PowerShell/issues/20937"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b3e95bf-fb68-ece7-770e-b52854ac1967 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D388:1AC388:454D30:5AFB46:6AFCEA91 |
| html-safe-nonce | 354893d238942e459554e3aafd71916134115712cad78246402c37f2ee00a566 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzg4OjFBQzM4ODo0NTREMzA6NUFGQjQ2OjZBRkNFQTkxIiwidmlzaXRvcl9pZCI6IjU0NTgxNzM5OTkyNDAyNDM4NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd8576cfac3a4e1dd7418ae64cf982dd7228115995a7a650e833db31a696c1df |
| hovercard-subject-tag | issue:2044439616 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/20937/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d49227882bf1fb474cc3bf243280eceda8bb7bbc1c60e649800551a640ccbeb/PowerShell/PowerShell/issues/20937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d49227882bf1fb474cc3bf243280eceda8bb7bbc1c60e649800551a640ccbeb/PowerShell/PowerShell/issues/20937 |
| og:image:alt | 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 follo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width