Subject: | abs2rel returns strange result when $base is not in canonical form |
File::Spec->abs2rel("/foo/bar/baz", "/foo/bar") returns "baz", as it should.
Since "/foo/bar/../bar" is the same , File::Spec->abs2rel("/foo/bar/baz", "/foo/bar/../bar") should mean the same and should return the same. But it returns "../bar/baz".
(There might be some argument about what this means if "/foo/bar" is a symlink, say one pointing to "/a/b/c". Then one could argue that "/foo/bar/../bar" resolves to "/a/b/bar" rather than to "/foo/bar". Is that what's happening here? )
I am using File::Spec 3.40. This version number has vanished from the RT "Broken in" menu, because RT.