On Sat, Oct 02, 2004 at 08:14:18PM -0600, Doug Russell wrote:
> 
> On Sat, 2 Oct 2004, Thomas David Rivers wrote:
> 
> >   If I'm remembering correctly - the historical way to
> >  do this is to alias the "rm" command to something that
> >  else that checks the arguments and complains appropriately
> >  (and then executes /bin/rm.)   Typically with just a shell
> 
> This would be a much, much better approach.

For those cases where what is being removed makes sense, I agree. / is a
special case, I maintain that the behaviour of `rm -rf` is, by
necessity, undefined and unpredictable. `rm` shouldn't be allowed to do
it any more than 'rm' should be used to remove user accounts simply
because they both invovle "removing" something. Newfs is the tool for
the job in this case.

-T


-- 
"Great spirits have always found violent opposition from mediocrities.
 The latter cannot understand it when a man does not thoughtlessly
 submit to hereditary prejudices but honestly and courageously uses his
 intelligence."    -- Albert Einstein
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to