On Sun, Jun 25, 2000 at 11:56:43AM -0400, Barrie Slaymaker wrote:
} [EMAIL PROTECTED] wrote:
} >
} > This distribution has been tested as part of the cpan-testers
} > effort to test as many new uploads to CPAN as possible. See
} > http://testers.cpan.org/
} >
} > Please cc any replies to [EMAIL PROTECTED] to keep other
} > test volunteers informed and to prevent any duplicate effort.
} >
} > --
} > Since VMS::Filespec was not installed, all of the VMS tests failed.
}
} Hmmm, it should have skipped those like so:
}
} ok 148 # skip VMS->splitpath('file'): Install VMS::Filespec (from vms/ext) at (eval
1) line 2.
} ok 149 # skip VMS->splitpath('[d1.d2.d3]'): Install VMS::Filespec (from vms/ext) at
(eval 1) line 2.
It did exactly that, but with a "not" in front.
}
} > not ok 243 # Mac->rel2abs('','t1:t2:t3'): got 't1:t2:t3', expected ''
}
} It passes on Linux, so I suspect that the file_name_is_absolute( '' ) is
} returns FALSE, since it does a
Yes, it does. file_name_is_absolute checks against the file system
for names without a : in them. It's necessary because "name" can mean
either a volume named "name" or something named "name" in the current
folder. There's only one way to find out. rel2abs claims not to
check against the filesystem, but implicitly it does because it uses
file_name_is_absolute.
}
} return ! -e ':' . '' ;
}
} and the directory ':' generally exists. Isn't it the pretend cwd?
Right.
}
} This ends up causeing rel2abs( '', 'blah' ) to absolutify
}
} return 'blah' . '' ;
}
} On other platforms the file ':' is not likely to exist, so the test passes.
} Does that sound like the cause?
Exactly.
}
} If so, does special casing file_name_is_absolute to return TRUE for ''
} make sense? (I can poll mac-perl if you think that would be better).
The one catch is that '' is a legal (although not very useful) name
for something. I can't think of any better way to do it, though, and
I doubt that people use '' as a name for something very much if they
also use textual paths to refer to things. So special casing the name
should have no effect in practice, and would solve the problem.
}
} - Barrie
}
--
Paul Schinder
[EMAIL PROTECTED]