backspace sends "Control-H" messing with readline binding?
Note: I'm not 100% sure if this is a problem with gnome-terminal.
Problem / Repro steps: I configured backspace to send Control-H (which causes Control-Backspace to send Control-? (at least in bash)), and did put the following in my inputrc:
"\C-?": backward-kill-word. I then noticed that after reloading the inputrc, the
"\C-?" binding would work, but then somehow become bound to
backward-delete-char after running a single command and regaining the prompt. It also happens when I open a non-login bash shell and compare the output of running the following two commands in order:
bind '"\C-?": backward-kill-word'; bind -p | grep '?',
bind -p | grep '?'.
I'm a new gnome-terminal user coming from MinTTY on Windows. I don't have this problem on MinTTY which is what makes me wonder if this is a quirk/bug in gnome-terminal. I've easily worked around this by succumbing to the strange stubborn
"\C-?": backward-delete-char binding: setting the gnome-terminal profile to send "ASCII DEL" (Control-? in bash) and switching my inputrc bindings for backward-kill-word and backward-delete-char.
I'm interested to know if anyone else can reproduce this. Thanks!