Re: [MacPerl-Porters] A new catdir() for review/discussion
[email protected] (Thomas Wegner)
| Newsgroups | perl.macperl.porters |
|---|---|
| Message-ID | <p04320400b7e8c33720a5@[149.225.18.92]> |
At 0:15 Uhr -0400 09.10.2001, Chris Nandor wrote:
>At 18:45 +0200 2001.09.30, Thomas Wegner wrote:
>>In theory, this sounds clear. But when it gets to coding, the decision has to
>>be made what happens with calls like
>>
>> catdir('', '::') or
>> catdir('', ':a','b:')
>>
>>Obviously, the resulting path can't simply be made absolute, especially in the
>>first example. Hence, I'd suggest, that an empty string when passed as
>>the first argument is treated as File::Spec->rootdir, which on Unix is
>>"/", and on Mac OS is the startup volume. This is the most portable way
>>for solving this absolute path problem I can think of. Comments welcome.
>
>Sounds good to me.
>
>I assume a patch here would also include a new catfile() if necessary (that
>is, it is just implemented mostly via catdir() anyway).
Of course (implement a new catdir() and get a new catfile() for free :).
>It would also be nice if you could supply a doc patch for lib/File/Spec.pm,
>but don't worry about it if you can't or don't want to. :-)
>
Yep, all inclusive. Just give me some time. I'm curious which modules and tests will explode afterwards; filefind-taint.t and filefind.t are my hottest candidates so far ;-).
Thanks for looking into it.
Best regards,
--Thomas
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com