Skip to content

Command History (F7) is added to when selected command from the list #17797

Open
@MogHughson

Description

@MogHughson

Windows Terminal version

1.20.11781.0

Windows build number

10.0.22631.4037

Other Software

No response

Steps to reproduce

  1. Open a clean command prompt - nothing in the list in F7.
  2. Type in a command, e.g. "dir"
  3. Type in a second different command, e.g. "dir D*"
  4. Press F7 to see the command list - it will contain two commands. Select the first one from the list.
  5. Press F7 to see the command list again, it will now contain three commands. This is unexpected.

Expected Behavior

Selecting the command from the command list was previously (in Windows 10 command prompt) the way you issued it to ensure it didn't get added to the history, thus allowing you to maintain a nice tidy command list.

Actual Behavior

Instead it was added to the history.

Metadata

Metadata

Assignees

Labels

Area-CookedReadThe cmd.exe COOKED_READ handlingIssue-BugIt either shouldn't be doing this or needs an investigation.Product-ConhostFor issues in the Console codebase

Type

No type

Projects

Status

Shipped

Status

Shipped

Relationships

None yet

Development

No branches or pull requests

Issue actions