Path: utzoo!lsuc!hcr!larry From: larry@hcr.UUCP (Larry Philps) Newsgroups: comp.unix.questions Subject: Re: Fun with ignoreeof Message-ID: <3104@hcr.UUCP> Date: Thu, 11-Feb-88 09:01:19 EST Article-I.D.: hcr.3104 Posted: Thu Feb 11 09:01:19 1988 References: <2248@tekcrl.TEK.COM> <178@uport.UUCP> Reply-To: larry@hcr.UUCP (Larry Philps) Organization: HCR Corporation, Toronto Lines: 25 In article <2248@tekcrl.TEK.COM> eirik@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 :-). How about: eval exit or eval logout or stty 0 or login or kill -1 $$ There's five quick ones. ----- Larry Philps HCR Corporation 130 Bloor St. West, 10th floor Toronto, Ontario. M5S 1N5 (416) 922-1937 {utzoo,utcsri,decvax,ihnp4}!hcr!larry