From owner-freebsd-questions Tue May 15 19:54:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc28.worldnet.att.net (mtiwmhc28.worldnet.att.net [204.127.131.36]) by hub.freebsd.org (Postfix) with ESMTP id 2FCA137B422 for ; Tue, 15 May 2001 19:54:37 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.7]) by mtiwmhc28.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010516025435.WJUR2093.mtiwmhc28.worldnet.att.net@worldnet.att.net> for ; Wed, 16 May 2001 02:54:36 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id D22FB195EB; Tue, 15 May 2001 22:29:31 -0400 (EDT) Date: Tue, 15 May 2001 22:29:31 -0400 From: parv To: f-q Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <20010515222931.A1397@moo.holy.cow> Mail-Followup-To: f-q References: <20010514085921.E16043@storm.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from ryan@sasknow.com on Tue, May 15, 2001 at 09:18:10AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG so, Ryan Thompson shared in my lifetime thusly ... > Michael P. Soulier wrote to freebsd-questions@FreeBSD.ORG: > > > On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote: > > > ... > > > Is anyone aware of any simple replacement for rm(1) that mimics the > > > "trash" or "recycle" features of other OSes (i.e., moves the files to a > > > safe area under the users control). ... > > > > TRASH='/pub/trashfolder' > > function rm { > > mv $* $TRASH || echo "Failed to move to trash" > > } > > > > Or something along those lines. > > Yeah, already whipped up something like that. My question is whether to > finish it, or find an existing one that works just as well. > > Thanks, > - Ryan > > > Mike i remember reading a discussion about it; may be somewhere in comp.unix* and the most common concern seemed to be as what will be the right thing to do if first "safe-remove" was done on a file, say ~/foo. then you create it again and for some reason safe-remove it. of course, 2d concern was waste of space/inode given the above scenario. does anybody know how windows and mac deal with the above situation? keep duplicates in "trash" until disk space and/or inode are near exhaustion? -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message