Random question from BH at MIT

utzoo!decvax!ucbvax!unix-wizards utzoo!decvax!ucbvax!unix-wizards
Thu Sep 24 22:57:57 AEST 1981


>From decvax!yale-comix!mp at Berkeley Thu Sep 24 15:09:15 1981
We have a modified version of csh which attempts to provide TOPS-20 like
recognition features.  Since the changes are all in the lexer input logic,
it has been easy to further modify it to set an environment variable to
the command line.  This could possibly help the programs ask the user if
he really wants to do something like `rm *' or `cat * >> x.c'.  For `rm'
alone, however, there is an easier solution, originally due, I think, to
John Ellis at Yale -
	alias rm 'cp !* ~/deleted/!* ; rm !*'
	alias unrm 'mv ~/deleted/!* !*'
plus have the .logout file contain the line 'rm ~/deleted/*'
Of course, this solution assumes the shell has aliasing.



More information about the Comp.unix.wizards mailing list