Hacker News new | ask | show | jobs
by sebazzz 1216 days ago
There is a huge difference between Powershell Core (6+, pwsh) and Windows Powershell (5, powershell.exe):

pwsh:

    > write-error Oh-Oh
    Write-Error: Oh-Oh
Windows Powershell:

    > write-error lol
     write-error lol : lol
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
     FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException