$FormatEnumerationLimit works only if $global:FormatEnumerationLimit is set.
I wonder: if this by design or should I submit it as a bug?
# BEGIN SCRIPT
$global:FormatEnumerationLimit = 4 # ensure default PS value
function Test
{
$e = 1 | Select-Object Prop1
$e.Prop1 = 1..10
$FormatEnumerationLimit = 8
$e
}
Test
# END SCRIPT
OUTPUT
Prop1
-----
{1, 2, 3, 4...}
EXPECTED OUTPUT
Prop1
-----
{1, 2, 3, 4, 5, 6, 7, 8...}
--
Thanks,
Roman Kuzmin
http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager


