delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/17/18:27:48

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
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Strange PWD result from "Cwd::chdir y:/dir"
From: dkarr AT tcsi DOT com (David M. Karr)
Date: 17 Jan 2001 15:24:01 -0800
Message-ID: <uyely1dapa.fsf@tcsi.com>
Lines: 41
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6
MIME-Version: 1.0

At the end of this, I have a little Perl test script called
"chdirtest".

All it does is record the single command-line argument, assume that is
a directory name, and do a "chdir" to that, then prints the value of
$PWD (it also prints $PWD before the chdir), and runs "ls".

I enclose here some shell output from running this.

-----------------------------------
[POPCORN;] chdirtest /tmp
PWD[/cygdrive/d/dmk/java]
dir[/tmp]
PWD[/tmp]
t4204.0
t461e.0
t4a91.0
t4a94.0
t4a99.0
[POPCORN;] chdirtest y:/java
PWD[/cygdrive/d/dmk/java]
dir[y:/java]
PWD[/cygdrive/d/dmk/java/y:/java]
bad.lst
good.lst
lost+found
stuff
total.lst
-----------------------------------

The first attempt is changing to the directory "/tmp".  The
PWD value and the directory contents are correct.

The second attempt is changing to the directory "y:/java".  The
directory contents are correct, but the PWD value is screwy.  Is it
supposed to look like this, or is there something wrong here?

-- 
===================================================================
David M. Karr     ; w:(425)487-8312     ; TCSI & Best Consulting
dkarr AT tcsi DOT com    ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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