This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Strange PWD result from "Cwd::chdir y:/dir"
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: Strange PWD result from "Cwd::chdir y:/dir"
- From: dkarr at tcsi dot com (David M. Karr)
- Date: 17 Jan 2001 15:40:18 -0800
- References: <uyely1dapa.fsf@tcsi.com>
>>>>> "David" == David M Karr <dkarr@tcsi.com> writes:
David> At the end of this, I have a little Perl test script called
David> "chdirtest".
I just knew I was going to forget to attach it. Here it is:
-----------------------------
#! /usr/local/bin/perl
use English;
use Cwd;
use Cwd 'chdir';
use strict;
$::dir = $ARGV[0];
print ::stdout "dir[" . $::dir . "]\n";
chdir $::dir;
print ::stdout "PWD[" . $ENV{'PWD'} . "]\n";
system('ls');
-----------------------------
--
===================================================================
David M. Karr ; w:(425)487-8312 ; TCSI & Best Consulting
dkarr@tcsi.com ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple