Bug 104036 - stty incorrectly changes terminal settings
stty incorrectly changes terminal settings
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: sh-utils (Show other bugs)
7.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-09-09 07:21 EDT by Norman Stevens
Modified: 2007-04-18 12:57 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-16 12:40:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
output from script showing terminal settings (3.66 KB, text/plain)
2003-09-09 07:22 EDT, Norman Stevens
no flags Details

  None (edit)
Description Norman Stevens 2003-09-09 07:21:04 EDT
Description of problem:
su incorrectly changes the stty settings

Version-Release number of selected component (if applicable):
sh-utils 2.0.11

How reproducible:
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.

    
Actual results:
When initially logged in the terminal settings are correct.
After su the terminal settings are incorrect. Specifically
erase has been set to ^?.

Expected results:
Terminal settings should be unchanged. stty -a should report
the settings as set on remote machine prior to logging in.

Additional info:
Comment 1 Norman Stevens 2003-09-09 07:22:53 EDT
Created attachment 94318 [details]
output from script showing terminal settings
Comment 2 Tim Waugh 2003-09-09 11:59:48 EDT
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?
Comment 3 Lon Hohberger 2003-09-09 12:26:51 EDT
Sort of.  Screen only works properly with "stty `tput kbs`".

This is reminiscent of:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91357
Comment 4 Tim Waugh 2004-12-07 06:43:33 EST
Is this all fixed now?  I remember there were some changes in screen.

Note You need to log in before you can comment on or make changes to this bug.