Title: tab completion of a provider path notation UNC share name is not possible · Issue #10002 · PowerShell/PowerShell · GitHub
Open Graph Title: tab completion of a provider path notation UNC share name is not possible · Issue #10002 · PowerShell/PowerShell
X Title: tab completion of a provider path notation UNC share name is not possible · Issue #10002 · PowerShell/PowerShell
Description: related to #7569 and #9881 Steps to reproduce Attempt to tab complete a share name on a UNC path via a partially resolved path that includes the provider notation. get-content Microsoft.PowerShell.Core\FileSystem::\\rk-vs-fs1\ # press ta...
Open Graph Description: related to #7569 and #9881 Steps to reproduce Attempt to tab complete a share name on a UNC path via a partially resolved path that includes the provider notation. get-content Microsoft.PowerShell....
X Description: related to #7569 and #9881 Steps to reproduce Attempt to tab complete a share name on a UNC path via a partially resolved path that includes the provider notation. get-content Microsoft.PowerShell....
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10002
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tab completion of a provider path notation UNC share name is not possible","articleBody":"related to #7569 and #9881 \r\n\r\n# Steps to reproduce\r\nAttempt to tab complete a share name on a UNC path via a partially resolved path that includes the provider notation.\r\n\r\n```powershell\r\nget-content Microsoft.PowerShell.Core\\FileSystem::\\\\rk-vs-fs1\\ # press tab to cycle through the shares on the server.\r\n```\r\n\r\n# Expected behavior\r\n\r\nI expected the same completions that I get with\r\n```powershell\r\nget-content \\\\rk-vs-fs1\\ # press tab to cycle through the shares on the server.\r\n```\r\n\r\n# Actual behavior\r\n\r\nNo completions occur\r\n\r\n# Analysis\r\n\r\nUpon researching leads on #9881, it was noticed that this issue would occur in this code:\r\nhttps://github.com/PowerShell/PowerShell/blob/981c990d747ae97f56a6c7474e5d2ef04bf237c5/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs#L4119-L4142\r\nThis particular code does not attempt to resolve the path name first to eliminate the potential 'filesystem' provider notation, before checking for a UNC '\\\\server\\share' pattern.\r\n\r\nThe 'filesystem' provider notation does not affect any other part of the tab completion logic, only the share name completion.\r\n\r\nDo note, this code shown above appears to be responsible for #7569, as it fails to escape `$` or spaces in the share names (or any other characters that might be legal in the share name but have a special meaning to PowerShell if not escaped or correctly quoted). ","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-06-25T17:25:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10002/PowerShell/issues/10002"}
| 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:4969f9be-d47c-eb7a-2211-5a28afa092a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D94:172D3F:2E4F7E0:3F9D022:6A549D70 |
| html-safe-nonce | e39253f137d18f14b605c454fce27dbb3d6ecb601430ea15d5e750c6d29a51d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk0OjE3MkQzRjoyRTRGN0UwOjNGOUQwMjI6NkE1NDlENzAiLCJ2aXNpdG9yX2lkIjoiNTk2NDQzMjE1ODE2NDgxOTMxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01ac0a54b0b65812432e07bc18c912d01de2dadad8c0880711af8edad9406ec0 |
| hovercard-subject-tag | issue:460547753 |
| 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/10002/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccbc5935c5972e88f9a3f9762248e31f9059f0e1689b33a1f6985a93bda63f9b/PowerShell/PowerShell/issues/10002 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccbc5935c5972e88f9a3f9762248e31f9059f0e1689b33a1f6985a93bda63f9b/PowerShell/PowerShell/issues/10002 |
| og:image:alt | related to #7569 and #9881 Steps to reproduce Attempt to tab complete a share name on a UNC path via a partially resolved path that includes the provider notation. get-content Microsoft.PowerShell.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width