This is still mixing up undo history:

bash-5.2$ history
    1  echo 1
    2  echo 2
    3  echo 3
    4  history

Type e, <history-search-backward>, <previous-history>, <accept-line>.

bash-5.2$ echo 2
2
bash-5.2$ history
    1  echo 1
    2  echo 2
    3* echo 3
    4  history
    5  echo 2
    6  history

Type <previous-history>*4 (move to line 3), <accept-line>.

bash-5.2$ echo 3
3
bash-5.2$ history 
    1  echo 1
    2  echo 2
    3  e
    4  history 
    5  echo 2
    6  history 
    7  echo 3
    8  history 

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to