You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default Get-Item output does not list name of symlinks if the path ends in a path separator ("/") #10633
On Linux (also verified on macOS; haven't tried on Windows)
# OK; symlink /proc/self is properly represented in the default output, and shows# link target path too.Get-Item/proc/self |Out-String| Should -match self
# BROKEN: Appending "/" makes the Name column blank.Get-Item/proc/self/|Out-String| Should -match self
Note the use of Out-String so as to expect the default output formatting, which is where the problem lies; by contrast, accessing the Name property explicitly, with, say, Format-List Name, works fine.
Expected behavior
The tests should pass.
Actual behavior
The 2nd test fails, because the Name column is blank:
Expected regular expression 'self' to match '
Directory: /proc
Mode LastWriteTime Length Name
---- ------------- ------ ----
l---- 9/26/2019 2:58 PM
', but it did not match.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commented on Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Activity
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 23, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.