Skip to content
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

Hyphen before parameter gets stripped on paste #2374

Closed
rockerinthelocker opened this issue Apr 19, 2021 · 1 comment
Closed

Hyphen before parameter gets stripped on paste #2374

rockerinthelocker opened this issue Apr 19, 2021 · 1 comment

Comments

@rockerinthelocker
Copy link

First opened here: PowerShell/PowerShell#15268

Thanks, @iSazonov! Indeed, the bug seems to be introduced in PSReadline 2.1! Still not resolved in 2.2.0 beta2.

Steps to reproduce

Copy and paste the following line into a Powershell Core console.

Optimize-Volume -DriveLetter C -Analyze –Verbose

Expected behavior

The hyphen before the Verbose parameter should be preserved.

Optimize-Volume -DriveLetter C -Analyze –Verbose

Actual behavior

The hyphen before the Verbose parameter has been stripped.

Optimize-Volume -DriveLetter C -Analyze Verbose

Environment data

Note: The bug affects PSReadline 2.1.0-2.2.0 beta 2.

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 19, 2021
@daxian-dbw
Copy link
Member

Close as a duplicate of #1603

@rockerinthelocker Note that the pasting works fine with Ctrl+v in PSReadLine. It only doesn't work when you paste with right click.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants