On Wed, 6 May 1998, Andrej V. Sysoev wrote:
> it displays '^H' on the screen and does not work appropriately.
> Is something wrong with my configuration files?
The TTY's erase character is not set to ^H. To set it from the prompt,
type:
stty erase ^V^H
The ^V will tell bash to include the following control code in the
command-line rather than interpreting it. The trouble here is that most
applications don't have fancy line-editing routines, they make a simple
function call to read a string (for example, scanf()). This simple
function will recognize the erase character as currently set by the stty
command. If ^H is not the escape character, it is simply added to the
string being read. Bash, however, is more sophisticated than that. Bash
will recognize both the erase character and ^H, just in case they are
different. This is nice until you run ftp, cu, etc.
/* Brian Rogers, professional geek, coffee achiever */
----
Vote Linus Torvalds, father of Linux, for man of the century!
http://www.pathfinder.com/time/time100/time100poll.html