Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hc!beta!unm-la!unmvax!turing.UNM.EDU!mike From: mike@turing.UNM.EDU (Michael I. Bushnell) Newsgroups: comp.unix.wizards Subject: Re: Novice games (was "Prompt Games") Message-ID: <827@unmvax.unm.edu> Date: 28 Feb 88 05:25:32 GMT References: <2336@tekcrl.TEK.COM> <3002@codas.att.com> <53@vsi.UUCP> Sender: news@unmvax.unm.edu Reply-To: mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) Organization: University of New Mexico, Albuquerque Lines: 33 The discussion about aliasing "alias" led me to the following trick: % alias "unalias" \\unalias % alias "alias" \\alias The recorded alias for unalias is '\unalias', and that for alias is '\alias'. Now, when someone types 'alias', the shell turns that into '\alias', and then, the backslash suppresses alias expansion, and the shell tries to execute the program 'alias'. It ends up printing "alias: command not found.". Of course, the same thing happens for unalias. There is no way out short of starting a new csh. --Mike Michael I. Bushnell Internet: mike@turing.unm.edu UUCP: mike@turing.unm.edu Bitnet: mike@turing.unm.edu CSnet: mike@turing.unm.edu YourFavoriteNet: mike@turing.unm.edu Golly, don't domains make everything simpler? For peoply who run UUCP but haven't switched over to smail *yet*, you can try {ucbvax,gatech}!unmvax!turing!mike. Or write: {Box 295, Coronado Hall} or {Computer Science, Farris Engineering Center} University of New Mexico Albuquerque, NM 87131 Or call: (505)277- [2992=dorm][6116=work] I work for the CS department. But don't blame them.