Copy text with LF line endings and paste into console with right-click
Text is pasted in its original order
Text is pasted in reverse
Windows 10 Enterprise 10.0.15063
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.15063.296
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.296
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


I have been able to reproduce this on every machine I've tried on and it appears to exist in PowerShell v6.0.0-alpha.17 Release as well. This doesn't seem to happen with a ctrl+v paste.
I didn't get this to repro with beta1, but does repro with Windows PowerShell 5.1. At this time we're only taking critical security fixes for 5.1.
Was this ever actually fixed? I am on PowerShell 7.0.0 and still see this issue. In my scenario, I have some PowerShell scripts documented in Confluence as part of developer on-boarding. Confluence saves all documentation with LF and so when I paste a script from Confluence into PowerShell, it reverses the whole script.
In addition, I tried running Update-Module PSReadLine based on @lzybkr saying this is a PSReadLine issue, and I got the following error:
PS D:\Users\John.Zabroski> update-module PSReadLine
Update-Module: Module 'PSReadLine' was not installed by using Install-Module, so it cannot be updated.
I see that the official issue now is https://github.com/PowerShell/PSReadLine/issues/579 and it is not fixed.
Most helpful comment
I see that the official issue now is https://github.com/PowerShell/PSReadLine/issues/579 and it is not fixed.