delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/31/23:29:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39FF9C8C.7597BC80@ece.gatech.edu>
Date: Tue, 31 Oct 2000 23:31:08 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Re: latest cygwin does not track pwd?
References: <14847 DOT 5635 DOT 636000 DOT 348903 AT gargle DOT gargle DOT HOWL> <4 DOT 3 DOT 1 DOT 2 DOT 20001031140921 DOT 02027560 AT pop DOT ma DOT ultranet DOT com> <20001031142519 DOT B28272 AT redhat DOT com>

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 AT sourceware DOT cygnus DOT com

- Raw text -


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