On Tue, Jul 05, 2005 at 02:22:13PM +0100, Stuart Henderson wrote: > Dragonfly have 'rm -I' (ask for confirmation if deleting >3 files or > -r) which works very well. Used routinely (e.g. in an alias in login > shells), I think it gives better protection than 'rm -i' since the > prompt is rare enough you don't train yourself to confirm automatically.
You can apply the following old patch to do it in OpenBSD. http://42-networks.com/obsd_patches/rm_I.patch