fixing rm * (was: Worm/Passwords)

Dennis G. Rears FSAC drears at ardec.arpa
Sun Nov 20 03:50:55 AEST 1988


J A Biep Durieux writes:

>At the very least, 'rm * .o' should refuse to do anything when the file '.o'
>doesn't exist.

    "rm" doesn't see the *. The shell does all the expansion. All rm
sees is the options and a list of file names.  If you don't like the
actions of rm, either change it by making the interactive option the
default or write you own.  rm does what you tell it do nothing more
nothing less.  Gee, I wish my boss was like that :-).

Dennis



More information about the Comp.unix.wizards mailing list