This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: George Necula <necula at eecs dot berkeley dot edu>
- Cc: cygwin at cygwin dot com, perl5-porters at perl dot org
- Date: Tue, 2 Apr 2002 08:05:55 +0200
- Subject: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm
- Organization: Esse keine toten Tiere
- References: <4E06A937DADC3842ACE4D3A1096A9EAC0297C6@JANUS.eecs.berkeley.edu>
Hallo George,
Am 2002-03-30 um 20:32 schriebst du:
> To reproduce the bug:
> perl -e 'use File::Spec; print File::Spec->file_name_is_absolute("C:/test")
> ? "no bug" : "bug";'
file_name_is_absolute
Takes as argument a path and returns true if it is an
absolute path.
$is_absolute = File::Spec->file_name_is_absolute( $path );
This does not consult the local filesystem on Unix,
Win32, OS/2, or Mac OS (Classic). It does consult the
working environment for VMS (see "file_name_is_absolute"
in File::Spec::VMS).
> To fix the bug add a line
What is the problem here?
We try to emulate a POSIX filesystem with all its advantages.
perl -e 'use File::Spec; $print = File::Spec->file_name_is_absolute("C:/test"); \
if (defined $print) {print "No Bug;)\n"};'
> cygwin => 'Win32',
Use ActivePerl if you need windows features.
> at the beginning of File/Spec.pm in the definition of the %modules hash
> table.
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/