Get-ChildItem produces an additional line with "-" for each item.

Topics: Developer Forum, User Forum
Sep 8, 2014 at 11:48 PM
Edited Sep 8, 2014 at 11:48 PM
Hi,

When I import pscx, Get-Childitem produces an additional line with "-" for each item.
For example,
> Get-ChildItem


    Directory: C:\Users\joon


Mode           LastWriteTime       Length Name
----           -------------       ------ ----
d----      9/8/2014 12:00 AM        <DIR> .emacs.d
-
d----      9/7/2014  4:42 PM        <DIR> .ssh
-
I'm using the following Posh version and pscx 3.1:
> $psversiontable.psversion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      9814   0
Coordinator
Sep 9, 2014 at 12:09 AM
Edited Sep 9, 2014 at 12:11 AM
I see you are using the WMF 5.0 Sept preview. I have seen this same issue and fixed it. It will be a little while before I can push an updated build though. For now, turn off loading of FileSystem tweaks by setting FileSystem = $false in your Pscx.UserPreferences.ps1 file. You will need to specify the path to the user preferences file when you import PSCX.
ipmo Pscx -arg $home\Pscx.UserPreferences.ps1
The issue stems from the fact that PowerShell now supported symbolic links/ hard links/ junction points, etc so they added a column to the Mode display. It will display an "l" if the entry is one of these links.
Sep 9, 2014 at 2:15 PM
Thanks you so much for the reply. I do not use Get-Childitem regularly so I will wait til the fix is pushed.