Frustrating but simple preference question

So I am set up on a new box for work here and I have a frustrating preference issue. Whenever I hit backspace, it deletes a whole word instead of a single character. I understand that this is generally the functionality of hitting ctrl-backspace. I tried googling for a solution and dabbled in my .profile and .bashrc files a bit but I have yet to come up with a fix for this. Does anyone know how to correct this?
jasondj wrote:
Whenever I hit backspace, it deletes a whole word instead of a single character.


In what program?
Sorry should have specified. Its bash
Not strictly C++ but you may want to check your terminal settings and try resetting them to their defaults. Try using a different terminal first to see if its a terminal problem rather than a bash config problem.
Someone on another forum solved this one for me. The command that fixed it was

stty erase '^h'

I added it to my .bashrc to make it execute every time I open bash.
Topic archived. No new replies allowed.