Novice games (was "Prompt Games")

Richard Tobin richard at aiva.ed.ac.uk
Thu Mar 3 09:15:32 AEST 1988


In article <827 at unmvax.unm.edu> mike at turing.UNM.EDU.UUCP (Michael I. Bushnell) writes:
>  % alias "unalias" \\unalias
>  % alias "alias" \\alias

>  ...

>There is no way out short of starting a new csh.

False.  What you need is something that happens after alias expansion, but
before built-in detection.  Like variable substitution.  For example:

aiva% alias "unalias" \\unalias
aiva% alias "alias" \\alias
aiva% unalias alias
unalias: Command not found.
aiva%
aiva% set b=unalias
aiva% $b unalias
aiva% unalias alias
aiva%



-- 
Richard Tobin,                         JANET: R.Tobin at uk.ac.ed             
AI Applications Institute,             ARPA:  R.Tobin%uk.ac.ed at nss.cs.ucl.ac.uk
Edinburgh University.                  UUCP:  ...!ukc!ed.ac.uk!R.Tobin



More information about the Comp.unix.wizards mailing list