Title: Powershell Core 6.2.3 does not show Hardlink Target as in previous versions. · Issue #11562 · PowerShell/PowerShell · GitHub
Open Graph Title: Powershell Core 6.2.3 does not show Hardlink Target as in previous versions. · Issue #11562 · PowerShell/PowerShell
X Title: Powershell Core 6.2.3 does not show Hardlink Target as in previous versions. · Issue #11562 · PowerShell/PowerShell
Description: Steps to reproduce Create a hard link between 2 files run command gci | ? { $_.LinkType } | Select FullName, LinkType, Target from Powershell V5 run same command from powershell core. New-Item -ItemType HardLink -Path C:\ -Name cdl.txt -...
Open Graph Description: Steps to reproduce Create a hard link between 2 files run command gci | ? { $_.LinkType } | Select FullName, LinkType, Target from Powershell V5 run same command from powershell core. New-Item -Ite...
X Description: Steps to reproduce Create a hard link between 2 files run command gci | ? { $_.LinkType } | Select FullName, LinkType, Target from Powershell V5 run same command from powershell core. New-Item -Ite...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Powershell Core 6.2.3 does not show Hardlink Target as in previous versions.","articleBody":"# Steps to reproduce\r\n1) Create a hard link between 2 files\r\n2) run command gci | ? { $_.LinkType } | Select FullName, LinkType, Target from Powershell V5\r\n3) run same command from powershell core.\r\n\r\n```powershell\r\nNew-Item -ItemType HardLink -Path C:\\ -Name cdl.txt -Value C:\\ComponentDetectionLog.txt\r\ngci | ? { $_.LinkType } | Select FullName, LinkType, Target\r\n```\r\n\r\n# Expected behavior\r\n\r\n```\r\nTarget array returns all linked files.\r\n```\r\n\r\n# Actual behavior\r\n\r\n```\r\nTarget array is empty on Windows PWSH 6.2.3\r\n```\r\n\r\n# Environment data\r\n```\r\n\r\nPS c:> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 5.1.18362.145\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.18362.145\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n\r\n\r\nPS c:> gci | ? { $_.LinkType } | Select FullName, LinkType, Target\r\n\r\nFullName LinkType Target\r\n-------- -------- ------\r\nC:\\cdl.txt HardLink {C:\\ComponentDetectionLog.txt}\r\nC:\\ComponentDetectionLog.txt HardLink {C:\\cdl.txt}\r\n\r\nPowershell Core\r\n\r\nc:> gci | ? { $_.LinkType } | Select FullName, LinkType, Target\r\n\r\nFullName LinkType Target\r\n-------- -------- ------\r\nC:\\cdl.txt HardLink {}\r\nC:\\ComponentDetectionLog.txt HardLink {}\r\n\r\nC:> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.2.3\r\nPSEdition Core\r\nGitCommitId 6.2.3\r\nOS Microsoft Windows 10.0.18363\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```","author":{"url":"https://github.com/DonFrazier-zz","@type":"Person","name":"DonFrazier-zz"},"datePublished":"2020-01-12T14:44:24Z","url":"https://github.com/PowerShell/PowerShell/issues/11562"}
| 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:c6e11aa2-3c27-ccd1-d716-18db4c788be6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95FE:27ED40:1E37ED:292826:6AFD500D |
| html-safe-nonce | 5fa6dbfa4c1c97ac0fddc080a1b4dac9a7f78c8d1aa84cb8aadeb379dec8acd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUZFOjI3RUQ0MDoxRTM3RUQ6MjkyODI2OjZBRkQ1MDBEIiwidmlzaXRvcl9pZCI6IjE1NjEwMjU3NjQxMDk2NjgzNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 088ed95c56437d8d1dbc0b62313692e3b13514f720e50284f688c7c401bbf501 |
| hovercard-subject-tag | issue:548579784 |
| 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/11562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02fca3cddff5a21480bb06cc48d05afa25c9366dad57ac8fa0943e1928d77234/PowerShell/PowerShell/issues/11562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02fca3cddff5a21480bb06cc48d05afa25c9366dad57ac8fa0943e1928d77234/PowerShell/PowerShell/issues/11562 |
| og:image:alt | Steps to reproduce Create a hard link between 2 files run command gci | ? { $_.LinkType } | Select FullName, LinkType, Target from Powershell V5 run same command from powershell core. New-Item -Ite... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DonFrazier-zz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width