Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: Move to Windows Recycle Bin instead of deleting Date: Tue, 14 Jan 2003 16:17:03 -0500 Message-ID: <83040F98B407E6428FEC18AC720F5D73E50179@exchange.tropicnetworks.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Rolf Campbell" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0ELI7t27399 > -----Original Message----- > From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] > Sent: Tuesday, January 14, 2003 4:06 PM > To: Ralf Hauser > Cc: cygwin AT cygwin DOT com > Subject: Re: Move to Windows Recycle Bin instead of deleting > > > On Tue, 14 Jan 2003, Ralf Hauser wrote: > > > Is there a way to have the files moved to the windows > recycle bin from > > the cygwin shell window/command line? > > Yes. In your ~/.bashrc: > > RECYCLE_BIN_PATH="" > function rm() { mv "$@" "$RECYCLE_BIN_PATH" } > I would speculate that another problem with this is that if you view the recycling bin in explorer, then you will no see (or be able to restore) the cygwin files. Also, if you empty the bin using explorer, then you will likely leave all cygwin-moved files. -Rolf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/