>>> How do I permanently bind the erase action to the backspace key in
>>> the Korn shell? Putting this line in my '.profile' file isn't working
>>> for me:
>>> stty erase ^h
>>> I'm a newbie using Aix, and occasionally Solaris, and using putty as
>>> my terminal. Help please. Thank you.
>> Permanently? You probably can't.
>> That stty command binds the erase action to control H,
>> the ASCII backspace character.
>> Some terminal's backspace keys do not output a ctrl-h.
>> ksh has no control over that.
> They all have a backspace key, and that's really what he's
> talking about.
But ^h, control-h, may not be what his backspace key sends.
It is easy enough to check whether the stty command took effect,
just type stty. It will report what some settings are, including
the erase setting.
As the OP is using putty, go into the putty configuration panel,
to "terminal" -> "keyboard". There you can see/chose what is
sent by the putty backspace key.
I'm guessing the configuration is set to send an ASCII DEL char
rather than a BS char. Change the configuration or use a different
stty erase command that matches the configuration. For example,
DEL would be stty erase ^?