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
Write-Output -NoEnumerate should not convert items in list to PSObject #8124
$after's type should still be Int32[] because Write-Output -NoEnumerate should not mess with the contents of the array.
Actual behavior
$after's type is PSObject[]
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Darwin 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 2220:59:21 PDT 2018; root:xnu-4903.201.2~4/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Activity
mklement0 commentedon Oct 26, 2018
Indeed, but this has been reported before: #5955
In fact, there's a few related issues: https://github.com/PowerShell/PowerShell/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+Write-Output+-NoEnumerate+in%3Atitle
All of which seem to originate in this ill-fated PR: #2038, originally discussed in #2035.
TylerLeonhardt commentedon Oct 26, 2018
Sounds good. I'll resolve as dupe to #5955