Trapping yourself in csh. (Fun with ignoreeof revisited)

duncs home dunc%moria at Sun.COM
Tue Feb 16 06:34:55 AEST 1988


In article <3282 at psuvax1.psu.edu> flee at gondor.cs.psu.edu (Felix Lee) writes:
>Here's something I cobbled together one day, when I discovered that csh would
>let you alias 'alias'.  It's a script you 'source' that traps you in csh.
>Works on 4.[23] Berkeleyish systems.
>
>Be prepared to:
>- kill yourself from another terminal.
>- disconnect your physical/telnet/rlogin connection.
>- crash csh.  (I don't know any fatal csh errors)
>- start up an assassin before you source this script.
>
>Did I miss anything?
>--
>Felix Lee	flee at gondor.cs.psu.edu	*!psuvax1!gondor!flee
>                           ...

Under SunOS 3.4, this got me out.

cd /
cd bin
echo /
$cwd/{$}stty eof ^D
^D



More information about the Comp.unix.questions mailing list