Trapping yourself in csh. (Fun with ignoreeof revisited)
Felix Lee
flee at gondor.cs.psu.edu
Mon Feb 15 07:31:36 AEST 1988
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
--------------------cut here--------------------
unalias * # clear the air
unset * #
set prompt = '(locked) /% ' # niceties
set noclobber #
/bin/stty new eof u lnext u # clear the terminal
/bin/stty werase '\\' #
/bin/stty quit '\!' #
/bin/stty rprnt "'" intr '"' #
alias nope 'echo /-0:0": nope"' # generic alias
set histchars = '//' # no execution
alias exec nope #
alias logout nope # no exit
alias login nope #
alias exit nope #
alias kill nope #
alias suspend nope #
alias stop nope #
alias set nope # no repair
alias unset nope #
alias setenv nope #
alias limit nope # no limit
alias 'unalias' nope # make it final
alias 'alias' nope #
More information about the Comp.unix.questions
mailing list