Red Hat Bugzilla – Bug 104036
stty incorrectly changes terminal settings
Last modified: 2007-04-18 12:57:27 EDT
Description of problem:
su incorrectly changes the stty settings
Version-Release number of selected component (if applicable):
Log in to RedHat linux machine with ssh/telnet/whatever then
su to root.
Steps to Reproduce:
1. use telnet/ssh/whatever to log in to linux machine.
2. su to root or other user.
When initially logged in the terminal settings are correct.
After su the terminal settings are incorrect. Specifically
erase has been set to ^?.
Terminal settings should be unchanged. stty -a should report
the settings as set on remote machine prior to logging in.
Created attachment 94318 [details]
output from script showing terminal settings
This seems to be casued by the /etc/bashrc invocation of stty.
lhh: Was that causing problems with screen(1) as well did you say?
Sort of. Screen only works properly with "stty `tput kbs`".
This is reminiscent of:
Is this all fixed now? I remember there were some changes in screen.