[ILUG] replacing the rm binary :-)
Kevin Lyda
kevin at ie.suberic.net
Fri Sep 3 21:01:27 IST 2010
On Wed, Sep 1, 2010 at 20:39, Lisa Muir <34.24.34 at gmail.com> wrote:
> I've been thinking about it, and wondering if it would be an idea to
> replace rm with a script based on mv to make it easier to recover from
> incidents like this. It gets complex when you consider the various
> commandline switches and then handling multiple files of the same name
> in wherever you move the files, missing folder context. Was thinking
> of moving files to a zapme folder in some location with a cron script
> to actually delete files or folders in zapme folders which are older
> than 1 week old.
>
> Just curious to know if anyone has worked on anything like that before
> or seen anything like it in the online projects?
Yes: http://groups.google.com/group/comp.unix.wizards/browse_thread/thread/c49664a0c23d4333/626d34051202e012?q=entomb+rm#626d34051202e012
And there were loads of others. If you hunt in USENET you'll see all
the concerns raised in this thread raised about 20 years ago as well.
ISTR Purdue admins being described as Satan worshippers for installing
such a thing.
Kevin
--
Kevin Lyda
Dublin, Ireland
US Citizen overseas? We can vote.
Register now: http://www.votefromabroad.org/
More information about the ILUG
mailing list