more useful options | |
PerlMonks |
Re^3: Directory Separator (none)by tye (Sage) |
on May 28, 2013 at 23:03 UTC ( [id://1035748]=note: print w/replies, xml ) | Need Help?? |
Documentation doesn't have the power to make something "not a bug". It shows that the behavior was not unintentional. But with such "powerful" justifications, can one ever hope to get the bug fixed? But remove the trailing slash from the resulting string, because it doesn't look good, The only "look" about it is that it makes it look like a Unix directory path, not a non-directory path. Though, I've run into enough things that just ignore trailing slashes that I've learned to append "/." (not just "/") to my directories when it really matters. isn't necessary, rsync, for one, disagrees. Specifying the intent that a directory is meant is often important and only "not necessary" if "in a perfect world". "mv foo bar/" is only the same as "mv foo bar" if you are 100% sure that bar already exists and is a directory. and confuses OS/2. Rather vague, there. That sounds like it might be a reason to strip the final '/' when on OS/2. So it might be a reason to impact the behavior of File::Spec::OS2. It is almost silly to mention that in File::Spec::Unix documentation (yes, they are two separate modules). But I suspect the first justification is the real one and will actually end up being a powerful block against getting this improved. So more literal '/'s for all. - tye
In Section
Seekers of Perl Wisdom
|
|