-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I have found a few scenarios in which the history (using the up/down arrow keys) does not behave like in most other shells. These can be reproduced from the demo shell as described in the readme.
Scenario 1:
From an empty shell with no history
- Enter a command, press enter
- Press the up arrow - The command you entered above will show up as expected
- Press enter
- Press the up arrow - The command does not show up. This is unexpected. In most shells you can press the up arrow and enter repeatedly to keep executing the same command over and over again
Scenario 2:
From an empty shell with no history
- Enter a first command, press enter
- Enter a second (different) command, press enter
- Press the up arrow - The second command appears as expected
- Press backspace until the command line is empty again
- Press enter - Empty command --> the prompt simply appears again as expected
- Press the up arrow - The first command appears. This is unexpected. In most shells the the history cursor will reset back to the most recent entry even after submitting an empty command.
The second scenario could be up for discussion, but the first one definitely seems like a bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done