There have been some changes to the default /root/.login recently that I
don't understand, and hope someone can enlighten me.

On my oldest server, the root shell is still csh, so the change is very
noticeable:  Using the /root/.login from the 4.5 CD, when I login there
is a terminal type prompt which has always included the proper terminal
type as default.  The /root/.login from the current snapshot always
results in an unknown terminal type, so I have to type in the terminal
type myself before proceeding.  Is this as intended?

*----------------------------------------------------------------------*
Last login: Fri Jul 10 11:32:12 2009 from herakles.walkereng.net
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

Terminal type? [xterm-color]
hermes#
*----------------------------------------------------------------------*
Last login: Fri Jul 10 11:35:12 2009 from herakles.walkereng.net
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

tset: unknown terminal type !*
Terminal type? nxterm
Erase is delete.
Kill is control-U (^U).
Interrupt is control-C (^C).
Read the afterboot(8) man page for administration advice.
hermes# diff old.login new.login
1c1
< # $OpenBSD: dot.login,v 1.11 2005/03/30 19:50:07 deraadt Exp $
---
> # $OpenBSD: dot.login,v 1.13 2009/05/06 22:02:05 millert Exp $
5,12c5,16
< set tterm='?'$TERM
< set noglob
< onintr finish
< eval `tset -s -Q $tterm`
< finish:
< unset noglob
< unset tterm
< onintr
---
> if ( -x /usr/bin/tset ) then
>       set noglob histchars=""
>       onintr finish
>       if ( $?XTERM_VERSION ) then
>               eval `tset -IsQ '-munknown:?vt220' $TERM`
>       else
>               eval `tset -sQ '-munknown:?vt220' $TERM`
>       endif
>       finish:
>       unset noglob histchars
>       onintr
> endif
hermes#
*----------------------------------------------------------------------*

Reply via email to