Repro:
- execute
echo foo
- execute
<Space>echo bar (prepend command with a space ( ) to prevent storing it in history)
- press ↑ key
Expected: <Space>echo bar is recalled
What happens instead: echo foo is recalled
This behavior is very convenient if a user wants to try various approaches to run command but doesn't want to flood history with non-working entries and/or entries containing private data.