Skip to content

Pasting in reverse with right-click #3816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tylorhl opened this issue May 18, 2017 · 4 comments
Closed

Pasting in reverse with right-click #3816

tylorhl opened this issue May 18, 2017 · 4 comments
Labels
Resolution-External The issue is caused by external component(s). WG-Interactive-PSReadLine PSReadline related issues

Comments

@tylorhl
Copy link

tylorhl commented May 18, 2017

Steps to reproduce

Copy text with LF line endings and paste into console with right-click

Expected behavior

Text is pasted in its original order

Actual behavior

Text is pasted in reverse

Environment data

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

image

image

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.

@SteveL-MSFT SteveL-MSFT added the Resolution-Answered The question is answered. label May 18, 2017
@SteveL-MSFT
Copy link
Member

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.

@lzybkr
Copy link
Member

lzybkr commented May 19, 2017

This is PowerShell/PSReadLine#496

@jzabroski
Copy link

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.

@jzabroski
Copy link

I see that the official issue now is PowerShell/PSReadLine#579 and it is not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-External The issue is caused by external component(s). WG-Interactive-PSReadLine PSReadline related issues
Projects
None yet
Development

No branches or pull requests

4 participants