Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2001 19:12:48 -0600
From:      Duke Normandin <01031149@3web.net>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: Recycle bin for FreeBSD? :-)
Message-ID:  <20010516191247.C167439@mandy.rockingd.calgary.ab.ca>
In-Reply-To: <15106.60293.141053.55469@guru.mired.org>; from "Mike Meyer" on Wed, May 16, 2001 at 04:05:09PM
References:  <132922586@toto.iv> <15106.60293.141053.55469@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, May 16, 2001 at 04:05:09PM -0500, Mike Meyer wrote:
> Duke Normandin <01031149@3web.net> types:

> > Try the attached scripts. I hope that this is close to what you were
> > looking for. Later.... 
> 
> Someone really should do these things *right* and put them in a port.
> 
> To see what's wrong with Duke's script, consider the following sequence:

These are NOT Duke's script, as Mike suggests! They are taken from
pg 186-187 of "Voodoo Unix" by Charles Russel and Sharon Crawford. The
authors encouraged their use with no conditions. I made no claims that
they were mine. As well, they have worked for me. As to whether or not
they can be improved on, Mike is in a better position than me to speak on
this point.

> $ rm My_Precious_File
> <realize you weren't where you thought you were, so...>
> $ cd old
> $ rm My_Precious_File
> 
> And you can no longer recover the current version of
> My_Precious_File. If you do this on Windows, you wind up with two
> copies of My_Precious_File, and it's not obvious which is which.

I wonder if Mike would be so kind as to suggest a remedy for the issue
that he's brought forward. Would appending a unique suffix to the
filename in the 'mv' to the ~/tmp process help?
-- 
-duke
Calgary, Alberta, Canada


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010516191247.C167439>