Red Hat Bugzilla – Bug 114101
inputrc fails to recognize certain bindings
Last modified: 2007-11-30 17:10:35 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
Description of problem:
Bash does not properly process certain definitions from .inputrc which
bind a C-A-key to an action (for example C-A-j) can not be rebound.
The only way to get it to recognize the bindings in .inputrc is to
reparse the file again (C-x, C-r) after bash has started.
The bug has been found by Chet (bash maintainer) and fixed. I'm just
including the patch to see if it can get into the rpms. I'll attach
the patch from Chet.
The fix will be in bash next release after 2.05b.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. bind C-A-j to any new action in .inputrc
2. start bash
3. the binding doesn't work
4. reparse setup file (C-x, C-r)
5. now the binding works
Created attachment 97174 [details]
Patch to fix this bug
Thanks. Please try bash-2.05b-36.
Similar bug appears again in GNU bash, version 3.00.14(1)-release
(i386-redhat-linux-gnu), in this case I am not able to redefine \C-w,
neither can I bind it using the builtin "bind". \C-x,\C-r helps, but
only for a short while - once I hit enter (and a new readline is
started), the key is again bound to unix-word-rubout. I guess version
3.* should be a descendant of 2.* so maybe the bug has a different reason.
Your tty settings have C-w as a special character. See bug #139384.