Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug in list rendering of FileInfo  #4396

Copy link
Copy link
@powercode

Description

@powercode
Issue body actions

Steps to reproduce

PS C:\Users\powercode> ls -File | fl


    Directory: C:\Users\powercode



Name                                                                                                                                                                       : .cdpath
if ($_ -is [System.IO.DirectoryInfo]) { return '' }
if ($_.Attributes -band [System.IO.FileAttributes]::Offline)
{
    return '({0})' -f $_.Length
}
return $_.Length : 101
CreationTime                                                                                                                                                               : 2016-12-19 19:42:20
LastWriteTime                                                                                                                                                              : 2017-07-10 17:20:09
LastAccessTime                                                                                                                                                             : 2017-07-10 17:20:09
Mode                                                                                                                                                                       : -a----
LinkType                                                                                                                                                                   :
Target                                                                                                                                                                     : {}
VersionInfo                                                                                                                                                                : File:             C:\Users\sgustafsson\.cdpath
                                                                                                                                                                             InternalName:
                                                                                                                                                                             OriginalFilename:
                                                                                                                                                                             FileVersion:
                                                                                                                                                                             FileDescription:
                                                                                                                                                                             Product:
                                                                                                                                                                             ProductVersion:
                                                                                                                                                                             Debug:            False
                                                                                                                                                                             Patched:          False
                                                                                                                                                                             PreRelease:       False
                                                                                                                                                                             PrivateBuild:     False
                                                                                                                                                                             SpecialBuild:     False
                                                                                                                                                                             Language:

Expected behavior

Length property is not completely messed up

Actual behavior


Environment data

> $PSVersionTable

Name                           Value                                                                                                                                                                                                                              
----                           -----                                                                                                                                                                                                                              
PSVersion                      6.0.0-beta                                                                                                                                                                                                                         
PSEdition                      Core                                                                                                                                                                                                                               
GitCommitId                    v6.0.0-beta.4                                                                                                                                                                                                                      
OS                             Microsoft Windows 10.0.15063                                                                                                                                                                                                       
Platform                       Win32NT                                                                                                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                                                
SerializationVersion           1.1.0.1                                                                                                                                                                                                                            
WSManStackVersion              3.0                                                                                                                                                                                                                                


Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Resolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.