[gnu.bash.bug] How do I use ^H as backward-delete-char

bengsig@oracle.nl (Bjorn Engsig) (12/08/89)

I have bash 1.04 running on a sun3 with sunos4.  On one of the terminals
I am using, the big key for char erase send a ^H and not DEL, the latter
being rather difficult to reach without moving fingers away from the keyboard.

How do I make ^H (C-H in emacs terms) work as the backward-delete-char?
I'm running in vi mode, and don't need ^H to do backspace.

Any stty settings for erase before calling bash, will be overwritten with
DEL.

Please note that I do not want to do it in my .inputrc, since I also use
terminals where DEL is the big char erase key.
-- 
Bjorn Engsig,	Domain:		bengsig@oracle.nl, bengsig@oracle.com
		Path:		uunet!{mcsun!orcenl,oracle}!bengsig

bfox@sbphy.ai.mit.edu (Brian Fox) (12/09/89)

   Date: 8 Dec 89 11:21:10 GMT
   From: mcsun!hp4nl!orcenl!bengsig@uunet.uu.net  (Bjorn Engsig)
   Organization: ORACLE Europe, The Netherlands
   Sender: bug-bash-request@prep.ai.mit.edu

   I have bash 1.04 running on a sun3 with sunos4.  On one of the
   terminals I am using, the big key for char erase send a ^H and not
   DEL, the latter being rather difficult to reach without moving
   fingers away from the keyboard.

   How do I make ^H (C-H in emacs terms) work as the backward-delete-char?
   I'm running in vi mode, and don't need ^H to do backspace.

The erase character is automatically selected to do backward-delete-char
in readline.

   Any stty settings for erase before calling bash, will be overwritten with
   DEL.

This doesn't happen to me.  I type "stty erase ^h; bash", and the new
bash has C-h running backward-delete-char.  Please send the sequence of
commands that fail.

Brian