File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -835,10 +835,13 @@ makeRelative root path
835
835
--
836
836
-- * .\/ -> \"\"
837
837
--
838
+ -- Does not remove @".."@, because of symlinks.
839
+ --
838
840
-- > Posix: normalise "/file/\\test////" == "/file/\\test/"
839
841
-- > Posix: normalise "/file/./test" == "/file/test"
840
842
-- > Posix: normalise "/test/file/../bob/fred/" == "/test/file/../bob/fred/"
841
843
-- > Posix: normalise "../bob/fred/" == "../bob/fred/"
844
+ -- > Posix: normalise "/a/../c" == "/a/../c"
842
845
-- > Posix: normalise "./bob/fred/" == "bob/fred/"
843
846
-- > Windows: normalise "c:\\file/bob\\" == "C:\\file\\bob\\"
844
847
-- > Windows: normalise "c:\\" == "C:\\"
Original file line number Diff line number Diff line change @@ -835,10 +835,13 @@ makeRelative root path
835
835
--
836
836
-- * .\/ -> \"\"
837
837
--
838
+ -- Does not remove @".."@, because of symlinks.
839
+ --
838
840
-- > Posix: normalise "/file/\\test////" == "/file/\\test/"
839
841
-- > Posix: normalise "/file/./test" == "/file/test"
840
842
-- > Posix: normalise "/test/file/../bob/fred/" == "/test/file/../bob/fred/"
841
843
-- > Posix: normalise "../bob/fred/" == "../bob/fred/"
844
+ -- > Posix: normalise "/a/../c" == "/a/../c"
842
845
-- > Posix: normalise "./bob/fred/" == "bob/fred/"
843
846
-- > Windows: normalise "c:\\file/bob\\" == "C:\\file\\bob\\"
844
847
-- > Windows: normalise "c:\\" == "C:\\"
Original file line number Diff line number Diff line change @@ -835,10 +835,13 @@ makeRelative root path
835
835
--
836
836
-- * .\/ -> \"\"
837
837
--
838
+ -- Does not remove @".."@, because of symlinks.
839
+ --
838
840
-- > Posix: normalise "/file/\\test////" == "/file/\\test/"
839
841
-- > Posix: normalise "/file/./test" == "/file/test"
840
842
-- > Posix: normalise "/test/file/../bob/fred/" == "/test/file/../bob/fred/"
841
843
-- > Posix: normalise "../bob/fred/" == "../bob/fred/"
844
+ -- > Posix: normalise "/a/../c" == "/a/../c"
842
845
-- > Posix: normalise "./bob/fred/" == "bob/fred/"
843
846
-- > Windows: normalise "c:\\file/bob\\" == "C:\\file\\bob\\"
844
847
-- > Windows: normalise "c:\\" == "C:\\"
Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ tests =
388
388
,(" P.normalise \" /file/./test\" == \" /file/test\" " , property $ P. normalise " /file/./test" == " /file/test" )
389
389
,(" P.normalise \" /test/file/../bob/fred/\" == \" /test/file/../bob/fred/\" " , property $ P. normalise " /test/file/../bob/fred/" == " /test/file/../bob/fred/" )
390
390
,(" P.normalise \" ../bob/fred/\" == \" ../bob/fred/\" " , property $ P. normalise " ../bob/fred/" == " ../bob/fred/" )
391
+ ,(" P.normalise \" /a/../c\" == \" /a/../c\" " , property $ P. normalise " /a/../c" == " /a/../c" )
391
392
,(" P.normalise \" ./bob/fred/\" == \" bob/fred/\" " , property $ P. normalise " ./bob/fred/" == " bob/fred/" )
392
393
,(" W.normalise \" c:\\\\ file/bob\\\\\" == \" C:\\\\ file\\\\ bob\\\\\" " , property $ W. normalise " c:\\ file/bob\\ " == " C:\\ file\\ bob\\ " )
393
394
,(" W.normalise \" c:\\\\\" == \" C:\\\\\" " , property $ W. normalise " c:\\ " == " C:\\ " )
You can’t perform that action at this time.
0 commit comments