X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <f60fe000901131024q5a600fc0haa6e076196c98b1e@mail.gmail.com>
Date: Tue, 13 Jan 2009 13:24:36 -0500
From: "Mark J. Reed" <markjreed@gmail.com>
To: cygwin@cygwin.com
Subject: Re: rm seems to fail
In-Reply-To: <5520d94f0901130916l7669d8capa39587365237da4f@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <5520d94f0901130852l310a9dfdk9821c26458d8d5e@mail.gmail.com> 	 <5520d94f0901130901y66a7df50yca7e586998a3bea3@mail.gmail.com> 	 <5520d94f0901130916l7669d8capa39587365237da4f@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Jan 13, 2009 at 12:16 PM, greenup wrote:
> oh, I forgot to mention: right after doing the rm, the return code is
> success, even though it failed to actually remove the file.

rm with -f is silent about certain types of errors, usually of the
"file doesn't exist" variety.  So that sounds like rm thinks that
either it successfully deleted the file or it didn't exist in the
first place.

Is rm without -f able to remove goo/foo (after you confirm at the
prompt)?  If not, does it generate an error indication?

--
Mark J. Reed <markjreed@gmail.com>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

