Reverse search fails when commands are present in bash_history | pressku.com

Trending 5 months ago

Ubuntu 22.04, from terminal I type ctrl+r and mosquitto_sub it finds mosquitto_sub --help and thing else. But:

# feline .bash_history | grep mosquitto_sub mosquitto_sub --help mosquitto_sub -t foo1/# -v mosquitto_sub -t /# -v -u personification -P <password> mosquitto_sub -t /# -v -u personification -P <password> -d mosquitto_sub -t /# -v -u personification -P <password> -d mosquitto_sub -t /# -v -u personification -P <password> -d -h localhost mosquitto_sub -t '#' -v -u personification -P <password> -d -h localhost mosquitto_sub cat ~/.bash_history | grep mosquitto_sub mosquitto_sub -t '#' -v -d mosquitto_sub -t '#' -v -d -u personification -P <password> mosquitto_sub --help mosquitto_sub -t '#' -v -d -u personification -P <password> -c mosquitto_sub -t '#' -v -d -u personification -P <password> -c foo mosquitto_sub -t '#' -v -d -u personification -P <password>

Here I publication nan problem tin beryllium related to nan bashrc settings, excavation are:

HISTCONTROL=ignoredups:ignorespace HISTSIZE=1000 HISTFILESIZE=2000

and:

# wc -l .bash_history 244 .bash_history

well beneath nan limits above. Even ignoring nan duplicates it should find different lines arsenic well.

More
close