Title: GCI of extended-length path "\\?\" returns incorrect items · Issue #14668 · PowerShell/PowerShell · GitHub
Open Graph Title: GCI of extended-length path "\\?\" returns incorrect items · Issue #14668 · PowerShell/PowerShell
X Title: GCI of extended-length path "\\?\" returns incorrect items · Issue #14668 · PowerShell/PowerShell
Description: Steps to reproduce Get-ChildItem -LiteralPath '\\?\D:\' Get-ChildItem -LiteralPath '\\?\UNC\server\share' Expected behavior Gets the items in the specified location. Actual behavior Gets the items in the root of the current drive (e.g. C...
Open Graph Description: Steps to reproduce Get-ChildItem -LiteralPath '\\?\D:\' Get-ChildItem -LiteralPath '\\?\UNC\server\share' Expected behavior Gets the items in the specified location. Actual behavior Gets the items ...
X Description: Steps to reproduce Get-ChildItem -LiteralPath '\\?\D:\' Get-ChildItem -LiteralPath '\\?\UNC\server\share' Expected behavior Gets the items in the specified location. Actual behavior...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14668
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GCI of extended-length path \"\\\\?\\\" returns incorrect items","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n--\u003e\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\n\r\nGet-ChildItem -LiteralPath '\\\\?\\D:\\'\r\nGet-ChildItem -LiteralPath '\\\\?\\UNC\\server\\share'\r\n\r\n```\r\n\r\n## Expected behavior\r\n\r\n```none\r\nGets the items in the specified location.\r\n```\r\n\r\n## Actual behavior\r\n\r\n```none\r\nGets the items in the root of the current drive (e.g. C:\\). Same cmdlet in PSVersion 5.1 gets the items in the specified location.\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.1\r\nPSEdition Core\r\nGitCommitId 7.1.1\r\nOS Microsoft Windows 10.0.14393\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n```\r\n","author":{"url":"https://github.com/mccarrm","@type":"Person","name":"mccarrm"},"datePublished":"2021-01-26T16:16:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/14668/PowerShell/issues/14668"}
| 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:e3110c5f-ffd9-6d31-7ebb-927b0050d8ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EBE:1A0816:83769A:AF65A1:6A51A9A5 |
| html-safe-nonce | cb161e6ac96c33bb075dd3a48839cd39e4ec0687973f338db5ced13debb78275 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUJFOjFBMDgxNjo4Mzc2OUE6QUY2NUExOjZBNTFBOUE1IiwidmlzaXRvcl9pZCI6IjM3NjAwOTUxNTYxODkxMTI3NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 37b3962afc8bb2fcf5c1e2a133977ab108c1e447a1d72fdd05c5a6eb2e2f43d9 |
| hovercard-subject-tag | issue:794365132 |
| 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/14668/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7fe19f61706a7967eeff4c1e7e9d3714408dee767c7d588774b5135eaa665ad9/PowerShell/PowerShell/issues/14668 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fe19f61706a7967eeff4c1e7e9d3714408dee767c7d588774b5135eaa665ad9/PowerShell/PowerShell/issues/14668 |
| og:image:alt | Steps to reproduce Get-ChildItem -LiteralPath '\\?\D:\' Get-ChildItem -LiteralPath '\\?\UNC\server\share' Expected behavior Gets the items in the specified location. Actual behavior Gets the items ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mccarrm |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width