delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/12/22:32:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 12 Jun 2002 22:32:12 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin1.dll [1.3.11(CVS)]: Interesting bug involving pwd and a non-exisitant directory
Message-ID: <20020613023212.GB26392@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020612131433 DOT 54651 DOT qmail AT web21003 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20020612131433.54651.qmail@web21003.mail.yahoo.com>
User-Agent: Mutt/1.3.23.1i

On Wed, Jun 12, 2002 at 06:14:33AM -0700, Nicholas Wourms wrote:
>Hi,
>
>My Version:
>CYGWIN_ME-4.90 DRAGON 1.3.11(0.53/3/2) 2002-06-12 07:54 i686 unknown
>
>*NOTE*: This was built from yesterday's sources prior to CGF's checkin of
>the patches which broke the current cvs tree.
>
>This is an easy bug to produce on WindowsME with Fat32:
>
>1)Open an rxvt session (A)
>2)Make a directory /usr/local/foo
>3)type "cd /usr/local/foo"
>4)Open another rxvt session (B)
>5)In session B, type "rm -fR /usr/local/foo"
>6)Close session B
>7)In session A, type "cd .." and note the path presented by bash.
>8)Typing "pwd" should reflect this as well.
>
>Here is what I get:
>
>root AT dragon /usr/local/foo/..
>$ pwd        
>/usr/local/foo/..

This isn't a regression in current CVS.  It was like this in 1.3.10, too.

I assume you're using Window 98 or ME.  Those were the only systems I could
duplicate this on.

/bin/pwd seems to work just fine.  It seems like bash is getting confused
when the directory disappears out from under it.  I am actually surprised
that Windows 98 allows you to do something like that.

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019