On 4/6/26 1:21 PM, k4lizen wrote:
Hello,
This is more of a question than a bug report, sorry if it's
the wrong place to ask.
When using GNU readline (bash, gdb), and doing a reverse-i-search
with Ctrl-R, pressing the Enter key both selects the current line
and "submits" it.
I assume you mean C-M (octal 015). That character is not in the default
value of the `isearch-terminators' variable. You can add it in your inputrc:
set isearch-terminators "\r\n\033"
Setting: `Return: isearch-terminators` in my `~/.inputrc` removes
the normal functionality of executing a command on Enter.
`isearch-terminators' isn't a bindable readline command, so readline just
ignores it and unbinds C-M.
Setting:
```
Return: isearch-terminators
Return: accept-line
```
Seems to only register the latter binding.
`accept-line' is a valid bindable readline command.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/