From owner-freebsd-questions Mon May 14 5:56:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail2.rdc1.on.home.com (femail2.rdc1.on.home.com [24.2.9.89]) by hub.freebsd.org (Postfix) with ESMTP id 4B3A637B422 for ; Mon, 14 May 2001 05:56:13 -0700 (PDT) (envelope-from msoulier@storm.ca) Received: from tigger ([24.114.252.60]) by femail2.rdc1.on.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010514125603.GZTZ8339.femail2.rdc1.on.home.com@tigger> for ; Mon, 14 May 2001 05:56:03 -0700 Received: from msoulier by tigger with local (Exim 3.22 #1 (Debian)) id 14zHwX-0005QE-00 for ; Mon, 14 May 2001 08:59:21 -0400 Date: Mon, 14 May 2001 08:59:21 -0400 To: freebsd-questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <20010514085921.E16043@storm.ca> References: <20010514015657.Y1527-100000@home.sasknow.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GxcwvYAGnODwn7V8" Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <20010514015657.Y1527-100000@home.sasknow.net>; from ryan@sasknow.com on Mon, May 14, 2001 at 02:16:24AM +0000 X-Mailer: Mutt-1.3.17i (Debian/GNU Linux 2.2.4-i686) From: "Michael P. Soulier" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote: >=20 > [ Don't throw things at me, OK? :-) ] Tempting... :) > 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. :) 2. TRASH=3D'/pub/trashfolder' function rm { mv $* $TRASH || echo "Failed to move to trash" } Or something along those lines.=20 Mike --=20 Michael P. Soulier =20 "With sufficient thrust, pigs fly just fine. However, this is not necessari= ly a good idea. It is hard to be sure where they are going to land, and it could= be dangerous sitting under them as they fly overhead." -- RFC 1925 --GxcwvYAGnODwn7V8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6/9apKGqCc1vIvggRAm+dAKC74TEbkhbuFtXN+g/HIJhFyVMg9gCgj8rL wOdXZ98X6b5N6NAXWQdPxX4= =kt1d -----END PGP SIGNATURE----- --GxcwvYAGnODwn7V8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message