Closed
Description
PSCore removed -Encoding Byte
for -AsByteStream
.
This line:
We should handle this like:
$params = @{this=that}
if ($PSVersionTable.PSEdition -eq "Core")
{
$params += @{AsByteStream=$true}
}
else
{
$params += @{Encoding="Byte"}
}
Get-Content @params
This will fix at least 1 bug with psedit over ssh. This might actually fix psedit for PSCore on Windows.