Replies: 1 comment
-
|
This doesn't seem to be related to void and you are doing a lot of things to the histfile in your bashrc and prompt command. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At least for me bash 5.3 seems to messing with bash_history.
This might be a bug or the (tolerated) result of a conscious change / new feature.
It looks like this:
Let's assume the following commands are in the history
So, if I use the arrow keys to scroll through the history, everything is fine. If I insert a letter after "git" to faster get to the result I'm looking for, let's say like this:
git pull -r -> git cpull -r to faster get to "git checkout master", e.g. and then use the arrow key to make bash to actually go to "git checkout master", it does that as expected, but in v5.3 it also now adds "git cpull -r" to the history even though that command was never "entered / executed", i.e. the "enter" button never was hit, so this "command" should not be added to the history.
This "new behavior" is, of course, very annoying, because is adds (most probably) non-working and never executed commands which need to be removed from history manually. Which is why I went back to the previous version that void offered.
This behavior might be triggered by script(s) that I use to enable the history search / completion, but maybe it really is an upstream bug which would have been reported by someone by now, but I couldn't find anything so I'd rather ask if anyone else ran into this "annoyance".
bash script via /etc (remnant from project trident):
via ~/.bashrc (note: on my system, there is no /etc/bash-completion, just /usr/share/bash-completion):
Beta Was this translation helpful? Give feedback.
All reactions