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-ChildItem / Get-Item output doesn't list the names of system-defined junctions on Windows #10630
Get-ChildItem$HOME-Force -Attributes "Directory+ReparsePoint"-Filter Cookies |Out-String| Should -match Cookies
Get-Item$HOME/Cookies -Force |Out-String| Should -match Cookies
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 tests fail, because the Name column in the default output is blank:
Expected regular expression 'Cookies' to match '
Directory: C:\Users\jdoe
Mode LastWriteTime Length Name
---- ------------- ------ ----
l--hs 6/5/2019 10:42 PM
', but it did not match.
Activity
iSazonov commentedon Jan 30, 2020
I can not repo. It seems it was fixed in #7127.
mklement0 commentedon Jan 30, 2020
Looks like it, thanks.