Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50044 - csh.login does stty sane which screws up backspace on ssh logins
Summary: csh.login does stty sane which screws up backspace on ssh logins
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-04 17:07 UTC by Matthew Caron
Modified: 2005-02-11 17:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Caron 2004-05-04 17:07:35 UTC
(hiro) /home/matt> sudo emerge search tcsh
Searching...   
[ Results for search key : tcsh ]
[ Applications found : 1 ]
 
*  app-shells/tcsh
      Latest version available: 6.12-r3
      Latest version installed: 6.12-r3
      Size of downloaded files: 804 kB
      Homepage:    http://www.tcsh.org/
      Description: Enhanced version of the Berkeley C shell (csh)
      License:     BSD


If you open an xterm, then run stty, it says:

speed 38400 baud; line = 0;
erase = ^H;
-brkint -imaxbel

Therefore, backspace does what you would expect.

However, if you ssh in to the machine, then run stty, you get:

speed 38400 baud; line = 0;

I presume that the fact that an xterm does a stty itself (or something), but ssh doesn't is why it works on the xterm and not through ssh.

If you remove the following line: 

if ( -x "`which stty`" ) stty sane cr0 pass8 dec

(line 19 from csh.login)

all is well.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




(hiro) /home/matt> sudo emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mo
zilla/defaults/pref:/usr/X11R6/lib/X11/xkb:/usr/kde/3.2/share/config:/usr/share/
texmf/tex/generic/config/ /usr/share/config /usr/share/texmf/dvipdfm/config/ /us
r/share/texmf/dvips/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf
/xdvi/:/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib aim alsa apm arts avi berkdb cdr crypt cups directfb dvd dvdr
 emacs encode esd ethereal evo flac foomaticdb gb gd gdbm gif gnome gphoto2 gpm 
gstreamer gtk gtk2 icq imagemagick imap imlib jabber jack java jikes jpeg kde la
dccalcms ldap lesstif libg++ libwww mad mcal mikmod mmx motif mozilla mpeg mpi m
sn mysql nas ncurses nls oggvorbis opengl oscar oss pam pcmcia pda pdflib perl p
lotutils png pnp ppds python qt quicktime readline ruby samba scanner sdl slang 
spell sse ssl svga tcltk tcpd tetex theora tiff truetype unicode usb videos wmf 
wxwindows x86 xinerama xml2 xmms xosd xv yahoo zlib"
Comment 1 SpanKY gentoo-dev 2005-02-11 17:01:30 UTC
a quick test with 6.13 seems to fix it for me ... but i dont use tcsh normally so please re-open if it doesnt resolve it for you