Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 2 Apr 2002 08:05:55 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <164333511744.20020402080555@familiehaase.de> To: George Necula CC: cygwin AT cygwin DOT com, perl5-porters AT perl DOT org Subject: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm In-Reply-To: <4E06A937DADC3842ACE4D3A1096A9EAC0297C6@JANUS.eecs.berkeley.edu> References: <4E06A937DADC3842ACE4D3A1096A9EAC0297C6 AT JANUS DOT eecs DOT berkeley DOT edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/