blob: ee7b3316fb7b16e86c9cf92ce7eb60668bddfd71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
package File::Spec::OS2;
#use Config;
#use Cwd;
#use File::Basename;
use strict;
require Exporter;
use File::Spec;
use vars qw(@ISA);
Exporter::import('File::Spec',
qw( $Verbose));
@ISA = qw(File::Spec::Unix);
$ENV{EMXSHELL} = 'sh'; # to run `commands`
sub file_name_is_absolute {
my($self,$file) = @_;
$file =~ m{^([a-z]:)?[\\/]}i ;
}
sub path {
my($self) = @_;
my $path_sep = ";";
my $path = $ENV{PATH};
$path =~ s:\\:/:g;
my @path = split $path_sep, $path;
foreach(@path) { $_ = '.' if $_ eq '' }
@path;
}
sub devnull {
return "/dev/nul";
}
1;
__END__
=head1 NAME
File::Spec::OS2 - methods for OS/2 file specs
=head1 SYNOPSIS
use File::Spec::OS2; # Done internally by File::Spec if needed
=head1 DESCRIPTION
See File::Spec::Unix for a documentation of the methods provided
there. This package overrides the implementation of these methods, not
the semantics.
=cut
|