1 package File::Spec::Cygwin;
4 use vars qw(@ISA $VERSION);
5 require File::Spec::Unix;
9 @ISA = qw(File::Spec::Unix);
14 return $self->SUPER::canonpath($path);
17 sub file_name_is_absolute {
18 my ($self,$file) = @_;
19 return 1 if $file =~ m{^([a-z]:)?[\\/]}is; # C:/test
20 return $self->SUPER::file_name_is_absolute($file);
25 return $tmpdir if defined $tmpdir;
26 my @dirlist = ($ENV{TMPDIR}, "/tmp", 'C:/temp');
29 if (${"\cTAINT"}) { # Check for taint mode on perl >= 5.8.0
31 shift @dirlist if Scalar::Util::tainted($ENV{TMPDIR});
35 next unless defined && -d && -w _;
39 $tmpdir = '' unless defined $tmpdir;
48 File::Spec::Cygwin - methods for Cygwin file specs
52 require File::Spec::Cygwin; # Done internally by File::Spec if needed
56 See File::Spec::Unix for a documentation of the methods provided
57 there. This package overrides the implementation of these methods, not
60 This module is still in beta. Cygwin-knowledgeable folks are invited
61 to offer patches and suggestions.