This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: latest cygwin does not track pwd?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]