Ottavio Caruso <
[email protected]> writes:
I have two files in two locations:
$ grep housing .bash_history |sort |uniq
vim Tenancy-Feb-2021/housing-log.txt
vim Tenancy-Jul-2023/housing.txt
As you can see, both are in the history file.
However if I do:
"CTRL-R hous"
this will only find "Tenancy-Feb-2021/housing-log.txt" but not "Tenancy-Jul-2023/housing.txt"
This has been happening since I created the latter file "Tenancy-Jul-2023/housing.txt".
Odd, isn't it?
I can't reproduce it on my system (Ubuntu, bash 5.2.0(11)-release).
Does "history | grep housing | sort | uniq" show both commands? Perhaps
your shell's internal history doesn't match the contents of the
.bash_history file. Is $HISTFILE set correctly?
(BTW, "sort | uniq" can be replaced by "sort -u".)
--
Keith Thompson (The_Other_Keith)
[email protected]
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)