From owner-freebsd-questions Wed May 16 20:25:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.cybersurf.net (smtp1.cybersurf.net [209.197.145.111]) by hub.freebsd.org (Postfix) with ESMTP id 4AFA037B423 for ; Wed, 16 May 2001 20:25:39 -0700 (PDT) (envelope-from 01031149@3web.net) Received: from 3web.net ([209.115.233.22]) by smtp1.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id GDGMUN00.N5P for ; Wed, 16 May 2001 21:25:36 -0600 Received: by 3web.net (EzMTS MTSAgent 1.22b Service) ; Wed, 16 May 01 21:24:55 -0600 for Received: from 3web.net (10.0.0.2) by 3web.net (EzMTS MTSSmtp 1.50 Service) ; Wed, 16 May 01 19:13:16 -0600 for Received: by mandy.rockingd.calgary.ab.ca (sSMTP sendmail emulation); Wed, 16 May 2001 19:12:49 +4200 Date: Wed, 16 May 2001 19:12:48 -0600 From: Duke Normandin <01031149@3web.net> To: Mike Meyer Cc: questions@freebsd.org Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <20010516191247.C167439@mandy.rockingd.calgary.ab.ca> References: <132922586@toto.iv> <15106.60293.141053.55469@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15106.60293.141053.55469@guru.mired.org>; from "Mike Meyer" on Wed, May 16, 2001 at 04:05:09PM X-Envelope-Receiver: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > $ 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