Skip to content

History recall and location behavior like cmd.exe has #781

Open
@JoeSalmeri

Description

@JoeSalmeri

Environment data

Name Value


PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
`
-->

Steps to reproduce or exception report

NOTE: that the actually commands entered do NOT matter I provide this so that we have some history to use for the explanation:

Type "dir 1.txt" and press enter
Type "dir 2.txt" and press enter
Type "dir 3.txt" and press enter
Press UpArrow until you get to dir 1.txt
Press Enter
Press DownArrow

When you press DownArrow nothing happens because you are at the end of the history.

If you repeat that using cmd.exe then after you pressed UpArrow to reach dir 1.txt and then hit enter, then the DownArrow would have brought up dir 2.txt since it was the next item in the history. cmd.exe seemed to track set your position in the history after you used it to execute a previous history item.

This was extremely convenient when you wanted to recall and repeat a sequence of commands because
after the first recall you pressed DownArrow which put you on the next command and subsequent DownArrows would let you re-execute the sequence one a time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions