develooper Front page | perl.perl5.porters | Postings from September 2003

New File::Spec snapshot 0.85_01 on CPAN

Thread Next
Ken Williams
September 11, 2003 14:15
New File::Spec snapshot 0.85_01 on CPAN
Message ID:

I just released File::Spec 0.85_01 to CPAN.  Changes since 0.85 are as 

  - The t/rel2abs2rel.t test now is a little friendlier about emitting
    its diagnostic debugging output. [Jarkko Hietaniemi]

  - We now only require() Cwd when it's needed, on demand. [Michael
    Schwern, Tels]

  - Fixed some POD errors and redundancies in and
    [Michael Schwern]

  - The internal method cwd() has been renamed to _cwd(), since it was
    never meant for public use. [Michael Schwern]

  - Several methods in File::Spec::Unix that just return constant
    strings have been sped up.  catdir() has also been sped up there.

  - Several canonpath() and catdir() bugs on Win32 have been fixed, and
    tests added for them:
       catdir('/', '../')   -> '\\'     (was '\..')
       catdir('/', '..\\')  -> '\\      (was '')
       canonpath('\\../')   -> '\\'     (was '')
       canonpath('\\..\\')  -> '\\'     (was '')
       canonpath('/../')    -> '\\'     (was '\..')
       canonpath('/..\\')   -> '\\'     (was '')
       catdir('\\', 'foo')  -> '\foo'   (was '\\foo')

  - catpath($volume, $dirs, $file) on Mac OS now ignores any volume
    that might be part of $dirs, enabling catpath($volume,
    catdir(rootdir(), 'foo'), '') to work portably across platforms.

The next thing to tackle is to make abs2rel($path, $base) consistent 
across platforms that have volumes, so that it returns $path if the 
volumes of $path and $base differ, rather than returning garbage.  That 
will come in a 0.85_02 snapshot, and then we should be close to what's 
destined for inclusion in perl 5.8.1.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About