Hi all,

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:

"If a full pathname consists of only one name (the volume name), the pathname must end 
in a colon. For pathnames to other directories, if the last name is followed by a 
colon, the colon is ignored. Multiname pathnames describing a file should not end in a 
colon."

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?).

Any comments before I report a bug?

Best regards,

--Thomas


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to