Fun with ignoreeof

John M. Sully jmsully at uport.UUCP
Fri Feb 5 12:10:19 AEST 1988


In article <2248 at tekcrl.TEK.COM> eirik at crl.TEK.COM (Eirik Fuller) writes:
|This is not intended to do much beyond amuse, but ...
|
|I have the following two lines in .cshrc:
|
|alias exit 'echo "Use ^D to exit"'
|alias logout 'echo "Use ^D to logout"'
|
|They are there only as a joke, but they got me thinking.  Suppose I
|also say "set ignoreeof".  How do I logout?  No fair using unset or
|unalias or alias -- they give any number of obvious two-liners.  Can
|I do it with a one-liner? (Using ";" is cheating too :-).

stty 0 will log you out.

-- 
John M. Sully         UUCP: ...!{sun | ucbvax | ihnp4}!amdcad!uport!techs
Microport Systems     ARPA: uport!techs at ucscc.UCSC.EDU
Technical Support         



More information about the Comp.unix.questions mailing list