diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-15 12:58:24 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-15 12:58:24 +0000 |
commit | 2586ba89304e7acdb4f9d621c694129dc14f6c8f (patch) | |
tree | 241ba95a5ce8581a5aef8e595dcc2481fe6679d6 /lib/File/Spec.pm | |
parent | 124f20193562047cb8a15da2ceac9eea52d2b122 (diff) | |
download | perl-2586ba89304e7acdb4f9d621c694129dc14f6c8f.tar.gz |
MacOS Classic catdir() rewrite from Thomas Wegner
(backward incompatibility, but a deliberate one,
the old version simply is broken in its logic),
also documentation updates, and as suggested replicated
the File::Spec::Unix documentation updates also on the
File::Spec documentation.
TODO: there seems to be duplication of documentation
between File::Spec and File::Spec::Unix. I think
the ::Unix should be left only with specific UNIXisms,
and all the generic documentation should be in ::Spec.
p4raw-id: //depot/perl@12440
Diffstat (limited to 'lib/File/Spec.pm')
-rw-r--r-- | lib/File/Spec.pm | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/lib/File/Spec.pm b/lib/File/Spec.pm index e0a7391995..0f90a45b62 100644 --- a/lib/File/Spec.pm +++ b/lib/File/Spec.pm @@ -59,7 +59,7 @@ File::Spec. Since some modules (like VMS) make use of facilities available only under that OS, it may not be possible to load all modules under all operating systems. -Since File::Spec is object oriented, subroutines should not called directly, +Since File::Spec is object oriented, subroutines should not be called directly, as in: File::Spec::catfile('a','b'); @@ -153,10 +153,9 @@ 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, or OS/2. It -does sometimes on MacOS (see L<File::Spec::MacOS/file_name_is_absolute>). -It does consult the working environment for VMS (see -L<File::Spec::VMS/file_name_is_absolute>). +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 L<File::Spec::VMS/file_name_is_absolute>). =item path @@ -198,7 +197,7 @@ files from directories. Unlike just splitting the directories on the separator, empty directory names (C<''>) can be returned, because these are significant -on some OSs (e.g. MacOS). +on some OSs. =item catpath() @@ -230,9 +229,7 @@ directories. If $path is relative, it is converted to absolute form using L</rel2abs()>. This means that it is taken to be relative to L<cwd()|Cwd>. -No checks against the filesystem are made on most systems. On MacOS, -the filesystem may be consulted (see -L<File::Spec::MacOS/file_name_is_absolute>). On VMS, there is +No checks against the filesystem are made. On VMS, there is interaction with the working environment, as logicals and macros are expanded. @@ -258,9 +255,7 @@ directories. If $path is absolute, it is cleaned up and returned using L</canonpath()>. -No checks against the filesystem are made on most systems. On MacOS, -the filesystem may be consulted (see -L<File::Spec::MacOS/file_name_is_absolute>). On VMS, there is +No checks against the filesystem are made. On VMS, there is interaction with the working environment, as logicals and macros are expanded. @@ -282,10 +277,11 @@ L<ExtUtils::MakeMaker> Kenneth Albanowski <kjahds@kjahds.com>, Andy Dougherty <doughera@lafcol.lafayette.edu>, Andreas KE<ouml>nig -<A.Koenig@franz.ww.TU-Berlin.DE>, Tim Bunce <Tim.Bunce@ig.co.uk. VMS -support by Charles Bailey <bailey@newman.upenn.edu>. OS/2 support by -Ilya Zakharevich <ilya@math.ohio-state.edu>. Mac support by Paul Schinder -<schinder@pobox.com>. abs2rel() and rel2abs() written by -Shigio Yamaguchi <shigio@tamacom.com>, modified by Barrie Slaymaker -<barries@slaysys.com>. splitpath(), splitdir(), catpath() and catdir() -by Barrie Slaymaker. +<A.Koenig@franz.ww.TU-Berlin.DE>, Tim Bunce <Tim.Bunce@ig.co.uk. +VMS support by Charles Bailey <bailey@newman.upenn.edu>. +OS/2 support by Ilya Zakharevich <ilya@math.ohio-state.edu>. +Mac support by Paul Schinder <schinder@pobox.com>, and Thomas Wegner +<wegner_thomas@yahoo.com>. abs2rel() and rel2abs() written by Shigio +Yamaguchi <shigio@tamacom.com>, modified by Barrie Slaymaker +<barries@slaysys.com>. splitpath(), splitdir(), catpath() and +catdir() by Barrie Slaymaker. |