fixing rm * (was: Worm/Passwords)

Richard A. O'Keefe ok at quintus.uucp
Wed Nov 23 16:09:49 AEST 1988


In article <812 at hadron.UUCP> jsdy at hadron.UUCP (Joseph S. D. Yao) writes:
[about rm *]
>What I did, a decade ago, was to have a list of _commands_ which the
>shell, after calling glob, would always prompt for after printing out
>the entire expanded command line.  The list included "rm" and "rmdir".
>No prompting if "glob" was not called.

Nice one, but how does this handle user commands with similar properties?
(For example, "a.rm".)
One answer, of course, would be to have a
	GLOBASK=rm:rmdir
shell variable, so that one could put
	GLOBASK=a.rm:$GLOBASK
in ones .profile.  (Did I just make a constructive suggestion?  Oops.)



More information about the Comp.unix.wizards mailing list