In Bash, I often encounter below situation when doing reverse-i-search (using emacs keybinding in Bash):
(reverse-i-search:ccc) aaa bbb |ccc ddd
I am in the middle of reverse-i-search for 'ccc', and the cursor correctly stopped at matching string.
Now I want to start from here, and add some additional characters before
ccc, e.g. making it
However, I cannot press Enter, otherwise the command is directly executed;
I can neither directly enter the characters I want to add, otherwise the search string is changed;
I cannot press Esc, otherwise bash will quit the search but also move the cursor.
So, how should I tell bash to quit the search but leave the cursor in place?