Tcsh 6.06: Ctrl-C does not exit login script

Tcsh 6.06: Ctrl-C does not exit login script

Post by Laurent Duperv » Wed, 29 Nov 1995 04:00:00



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.

 
 
 

1. tcsh 6.06 on solaris 2.5.1

Seems to work just fine for me; what exactly is your problem?

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

2. pppd and chat working

3. HELP! Where to get TCSH 6.06?

4. External speakers and LinuxPPC

5. Anyone got tcsh 6.06 working under HPUX 10.01 ?

6. Soundblaster AWE 32

7. TCSH Version Still 6.06?

8. Oracle 9i on Linux won't start on boot

9. Compiling tcsh 6.06 on Solaris 2.6

10. Can't connect with ftp when using tcsh 6.06

11. tcsh 6.06

12. Compiling tcsh 6.06

13. Compiling tcsh 6.06 / 1.2.13 / gcc 2.7.0