Novice games (was "Prompt Games")
Doug Landauer
landauer at morocco.Sun.COM
Tue Mar 1 08:40:21 AEST 1988
> % alias "unalias" \\unalias
> % alias "alias" \\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.
I suppose this depends on what version of "csh" you're using on what
operating system, but SunOS lets you escape this trap pretty easily.
The first thing I tried was to type
% ''unalias unalias
% unalias alais
This is one easy way out; I'm sure there are others.
More information about the Comp.unix.wizards
mailing list