Skip to content

The output of formatting is not as expected for '[datetime]::FromFileTime(129263964139663005) | format-table; [datetime]::FromFileTime(129263964139663005) | format-wide; get-item . | format-table' #1765

Closed

Description

cd C:\MSPCTL\PowerShell\tests\Host\FormatandOutput
.\InvokeTest.ps1 -test RegressionTestBug58612 -pri P1

Distilled repro
In #131, there is no extra whitespace in the table for the file, as you would see if you had used Format-Table -Auto
In #132, the whitespace has used the specified in FileSystem.format.ps1xml.

#131 PS> get-date | ft; get-item $pshome\powershell.exe
DisplayHint Date                  Day DayOfWeek DayOfYear Hour  Kind Millisecond Minute Month
----------- ----                  --- --------- --------- ----  ---- ----------- ------ -----
   DateTime 9/14/2015 12:00:00 AM  14    Monday       257   17 Local         606     26     9

    Directory: C:\Windows\System32\WindowsPowerShell\v1.0

Mode          LastWriteTime Length Name
----          ------------- ------ ----
-a---l  9/12/2015   9:46 AM 475648 powershell.exe

#132 PS> get-date | ft | out-host; get-item $pshome\powershell.exe
DisplayHint Date                  Day DayOfWeek DayOfYear Hour  Kind Millisecond Minute Month
----------- ----                  --- --------- --------- ----  ---- ----------- ------ -----
   DateTime 9/14/2015 12:00:00 AM  14    Monday       257   17 Local         608     26     9

    Directory: C:\Windows\System32\WindowsPowerShell\v1.0

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a---l        9/12/2015   9:46 AM         475648 powershell.exe

Activity

  1. added
    WG-Engine
    Up-for-Grabs
    on Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedUp-for-GrabsWG-Engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions