This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
cygwin1.dll [1.3.11(CVS)]: Interesting bug involving pwd and a non-exisitant directory
- From: Nicholas Wourms <nwourms at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Jun 2002 06:14:33 -0700 (PDT)
- Subject: cygwin1.dll [1.3.11(CVS)]: Interesting bug involving pwd and a non-exisitant directory
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@dragon /usr/local/foo/..
$ pwd
/usr/local/foo/..
Basically, whatever directory you change into after the removal, pwd
appends to the value previously reported. I can fix my PWD by issuing a
cd involving the root directory (i.e. "cd /usr"). Perhaps someone on NT
might want to try this to see what happens...
Just thought I'd give you a heads up :-).
Cheers,
Nicholas
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
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/