Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- Open a new PowerShell terminal with (
pwsh.exe
) or without a profile (pwsh.exe -NoProfile
). - Write any command, for example
cd .
- Select all or part of the command, for example with
Ctrl+A
orShift+←
. - Run the command with
Enter
.
Expected behavior
The command is deselected and executed.
Actual behavior
The command is executed, but retains the selection styling.
Error details
No response
Environment data
Reproducible both on Windows and Ubuntu in latest stable and latest preview releases, for example these two environments:
Name Value
---- -----
PSVersion 7.3.0-preview.4
PSEdition Core
GitCommitId 7.3.0-preview.4
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Name Value
---- -----
PSVersion 7.2.4
PSEdition Core
GitCommitId 7.2.4
OS Linux 5.10.102.1-microsoft-standard-WSL2 PowerShell/PowerShell#1 SMP Wed Mar 2 00:30:59 UTC 2022
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0