Bash history editing unwanted

Solution 1:

This is handled by readline. To change it you need to add set revert-all-at-newline on to your /etc/inputrc (or ~/.inputrc) if you have it. Note that you don't even have to start a new subshell after modifying inputrc because you can invoke re-read-init-file function which is binded to Ctrl-x Ctrl-r by default:

$ bind -p | grep read
"\C-x\C-r": re-read-init-file