From owner-freebsd-questions Tue May 15 8:18:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id C352137B424 for ; Tue, 15 May 2001 08:18:13 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id JAA58732; Tue, 15 May 2001 09:18:11 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Tue, 15 May 2001 09:18:10 -0600 (CST) From: Ryan Thompson To: "Michael P. Soulier" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) In-Reply-To: <20010514085921.E16043@storm.ca> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael P. Soulier wrote to freebsd-questions@FreeBSD.ORG: > On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote: > > > > [ Don't throw things at me, OK? :-) ] > > Tempting... :) No. Don't. :-) > > 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). > > 1. Don't delete things you want to keep. :) OK, YOU tell 'em. :-) > 2. > > 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 > > -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message