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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C962F7E.4040706@cportcorp.com> Date: Mon, 18 Mar 2002 13:18:38 -0500 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: debugging an rm/sh/make/cygwin corner case Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I am hoping some people can give me ideas on how to debug a problem I am having with rm when invoked from cygwin's make.exe, which is using sh as its shell. Basically, when I call "rm -r -f" from a makefile, it gives me errors about "Permission Denied, Directory Not Empty". This is the same error that I get when I try to manually rm a directory when I have a separate shell cd'd there. I think that somehow make or sh are cd'ed into the directory I am trying to rm, so it cannot be removed. I am a newbie at debugging, so I am looking for specific ideas to try to narrow down the problem to one particular thing; i.e. sh, make, rm, or cygwin1.dll. I have tried replacing rm and the cygwin1.dll with different versions, but I get the same error. I also tried replacing sh with bash, same error. I plan on trying different versions of make and sh, but if anyone can suggest what to strace or which files I can plug printfs into, I would really appreciate it. TIA, Peter -- 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/