At 10:05 +0100 02.14.2001, Thomas Wegner wrote:
>I've detected, that the MacPerl 5.6.0 `pwd` command doesn't work the
>same as in MacPerl 5.004. While `pwd` in MP 5.004 returns a pathname
>that ends with a colon for volumes (e.g. "MacintoshHD:"), the returned
>pathname doesn't end with a colon for directories (e.g.
>"MacintoshHD:tmp_folder"). `pwd` in MP 5.6.0 instead returns a pathname
>that ends with a colon in both cases. According to Inside Mac, Vol. IV,
>page 99, both versions are correct:
I think we are going to try to "standardize" on always ending in a colon
for a directory, for return directory names. This even goes for
File::Basename::dirname(), where for Unix and Windows, the trailing
separator is removed. This causes problems for us, though, so we leave it
on.
>However, I personally like the new version, because it's more consistent
>(you always get a trailing colon), although it will break some existing
>scripts (but careful Perl programmers, except me :), have always checked
>for a trailing colon, hmm?).
Well, if you use File::Spec::Functions, you shouldn't have the problem. I
know a lot of people don't do that, but, they should. :-) That way it
doesn't matter if the name has a : or not.
Yes, it could break some things, but if we are going to change the
behavior, now would be the time.
We could decide that we like the old behavior better. For now, though,
we'll go ahead with including trailing ":" on paths as a general rule.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/