HI,
I have a login script that looks like this:
if ( `tty` == "/dev/console" ) then
if ( $TERM == "sun" || $TERM == "AT386" ) then
if ( ${?OPENWINHOME} == 0 ) then
setenv OPENWINHOME /usr/openwin
endif
echo ""
echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
sleep 5
echo ""
$OPENWINHOME/bin/openwin
clear # get rid of annoying cursor rectangle
logout # logout after leaving windows system
endif
else
cat /etc/motd
endif
If I use the Sun-provided csh, hitting Crtl-C brings me to my prompt. But
with tcsh 6.06, I get logged out of the system. I think I have to hit the
Ctrl-C twice real fast for it to work. If I comment out the "logout" command,
I can return to my prompt.
My question is, which behavior is correct, Sun's csh or tcsh? I think csh is
behaving properly. Can someone explain to me how I can get the same behavior
from tcsh?
Thank you for any/all reponses.
--
Laurent Duperval | All opinions expressed herein are fictitious.
Analyste | Any resemblance to actual opinions, living or
| dead, is purely coincidental.
URL: http://www.Grafnetix.COM
CANADA BILL JONES' MOTTO
It's morally wrong to allow naive end users to keep their money.