Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!princeton!udel!rochester!cornell!uw-beaver!tektronix!tekcrl!eirik From: eirik@tekcrl.UUCP Newsgroups: comp.unix.questions Subject: Fun with ignoreeof Message-ID: <2248@tekcrl.TEK.COM> Date: 24 Jan 88 11:22:00 GMT Reply-To: eirik@crl.TEK.COM (Eirik Fuller) Organization: Tektronix, Inc., Beaverton, OR. Lines: 20 Posted: Sun Jan 24 06:22:00 1988 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 :-). My first impulse was "\exit" or "\logout". No dice, since a leading \ to undo aliases also undoes builtins. This soon led me to exec; the first quiet one I tried was "exec true"; it worked. So how about it? Any other solutions, that don't use alias, unalias, unset, exec, or source? Don't waste any time on this, as it is of no more importance than it seems. Flames about shell preference will be quietly ignored. :-)