in reply to Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
FYI: This has been opened as issue #49.
Does this break on Linux
It should. So that's a test suite coverage failure.
I think I have a fix, but I have a broader question:
Is there any reason to allow a raw volume like "C:" (no trailing slash) or "\\server\share" as a Path::Tiny "path"? Or should I be fixing those to have a trailing slash so they are properly understood as referencing the root directory of those volumes?
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
by Corion (Patriarch) on Aug 19, 2013 at 10:58 UTC | |
by xdg (Monsignor) on Aug 19, 2013 at 12:55 UTC | |
by Corion (Patriarch) on Aug 19, 2013 at 13:02 UTC | |
by xdg (Monsignor) on Aug 19, 2013 at 15:53 UTC | |
by Anonymous Monk on Aug 20, 2013 at 09:04 UTC | |
|
In Section
Seekers of Perl Wisdom