Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <39FF9C8C.7597BC80@ece.gatech.edu>
Date: Tue, 31 Oct 2000 23:31:08 -0500
From: Charles Wilson <cwilson@ece.gatech.edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@sources.redhat.com
Subject: Re: latest cygwin does not track pwd?
References: <14847.5635.636000.348903@gargle.gargle.HOWL> <4.3.1.2.20001031140921.02027560@pop.ma.ultranet.com> <20001031142519.B28272@redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christopher Faylor wrote:
> 
> On Tue, Oct 31, 2000 at 02:10:42PM -0500, Larry Hall (RFK Partners, Inc) wrote:
> >At 01:57 PM 10/31/2000, Richard Y. Kim wrote:
> >
> >>I updated to all latest files as of 10:30AM on October 31, 2000 from
> >>ftp.freesoftware.com as well as ftp.yggdrasil.com.
> >>
> >>I give two examples of how bash and/or cygwin1.dll gets confused about
> >>pwd.  First "ls -l ./foo" reports that ./foo does not exist.  However,
> >>"cat ./foo" prints out its old content!
> >>
> >>   bash-2.04$ cd d:/projects/apwin/tools/
> >>   bash-2.04$ ls -l ./foo
> >>   ls: ./foo: No such file or directory
> >>   bash-2.04$ cat ./foo
> >>   #!/usr/local/bin/perl
> >>   use Cwd;
> >>   my $dir = cwd;
> >>   print "cwd = $dir\n";
> >>   bash-2.04$
> >
> >Is the behavior different if you mount d: and access cd to the directory
> >that way (or use the /cygdrive/d convention)?
> 
> Can anyone else duplicate this?  It works as expected for me.

the stuff that involves ONLY cygwin (not perl) works as expected. 
Actually *running* the perl script "./foo" gives:

cwd =

just as Richard Kim says.  The code for Cwd::cwd on cygwin is
implemented by <perl-src>/cygwin.c -- but I don't know why it's
failing.  Patches gratefully accepted (and archived -- I'm not planning
to release a new perl build myself until 5.6.1 comes out; and probably
not even then if a third party takes the initiative...

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

