Lior Silberman <[EMAIL PROTECTED]> writes:

| > Under unix-like OS, the * is expanded by the shell, not by the rm command,
| > so the rm command never sees the *.  You'd have to hack the shell, not the
| > rm command, and the question becomes, how do you do that consistently?  Do
| > you specialcase for a command rm with one of the arguments being * ?
| 
| You should alias rm to be 'rm -i'. This is possible on almost all shells.

And this can be equally dangerous. If you assume that "rm" really is
"rm -i" and to a "rm *" to select the files that should be deleted...
(and this has happend in realy life one of the reasons I really abhore
"rm -i")

        Lgb

Reply via email to