[Cialug] Bash 4.1 question

Daniel A. Ramaley daniel.ramaley at drake.edu
Tue Sep 13 09:47:41 CDT 2011


I have a follow-up question to my earlier one.

I'm trying to get control-backspace mapped in bash so that it deletes 
the previous word, like it does in most GUI applications. I've tried 
setting these in .inputrc to no effect:
    "\C-\b": backward-kill-word
    Control-Rubout: backward-kill-word

"bind -P" shows that:
    backward-kill-word can be found on "\e\C-h", "\e\C-?".
Those mean that escape followed by backspace will delete the previous 
word (and i've tried that, and it does indeed work), but i'd really like 
to add control-backspace to that list. Unfortunately, it seems bash 
thinks backspace is really control-h so it is difficult to map an extra 
control onto that.

Any ideas?

__
Daniel A. Ramaley
Network Engineer 2

Dial Center 112, Drake University
2407 Carpenter Ave / Des Moines IA 50311 USA
Tel: +1 515 271-4540
Fax: +1 515 271-1938
E-mail: daniel.ramaley at drake.edu



More information about the Cialug mailing list