My typical work flow at the bash prompt consists in typing commands and retrieving them using the Ctrl+R "literal" mechanism.
I have noticed over possibly the last couple of years that there are times where a command randomly disappears from the bash history.
Say I type and execute successfully the following:
$ command A arg1 arg2
$ command B arg3
$ command C arg4
… and type Ctrl+R arg1
— e.g. I get a "failed-reverse-i-search `arg1' ..." error.
Something of interest is that if I follow up with a:
$ history | less
... command A
is indeed NOT the history... but I have a line that starts with an asterisk in "column 0" of the history — column 0 means the column just left of the column where the commands logged in the history start — followed by a blank line.
Has anyone seen anything like this?
This is on a debian/linux stable (buster) running bash 5.0.3.