Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 16039
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: amedico [...] ccs.neu.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.55
Fixed in: (no value)



Subject: "cover -delete" too indiscriminate
"cover -delete" is too indiscriminate. It calls "File::Find->rmtree()" on the given directory without bothering to check if that directory actually contains anything created by the "cover" command. Mistyping "cover -delete ." as "cover -delete /" is rather catastrophic - it should simply realize that there is no cover_db there and exit without removing anything.
Subject: Re: [cpan #16039] "cover -delete" too indiscriminate
Date: Sat, 30 Dec 2006 15:58:51 +0100
To: Guest via RT <bug-Devel-Cover [...] rt.cpan.org>
From: Paul Johnson <paul [...] pjcj.net>
On Tue, Nov 22, 2005 at 04:57:47PM -0500, Guest via RT wrote: Show quoted text
> "cover -delete" is too indiscriminate. It calls "File::Find->rmtree()" on > the given directory without bothering to check if that directory actually > contains anything created by the "cover" command. Mistyping "cover -delete > ." as "cover -delete /" is rather catastrophic - it should simply realize > that there is no cover_db there and exit without removing anything.
Thanks for the report. this is now fixed as http://pjcj.sytes.net/svnweb/Devel::Cover/revision/?rev=188 -- Paul Johnson - paul@pjcj.net http://www.pjcj.net