Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Path::Class::Dir->contains doesn't handle ".." #43
The documentation for contains says that it checks the filesystem to see if one directory is contained within another, however
shows that it didn't actually resolve the directories or even logically deal with the "..".
The changes made in 935eeed introduces a regression (confirmed with git bisect)
Starting with that commit, the following cmdline prints
mkdir -p deleteme/test/path touch deleteme/test/path/somefile perl -Ilib -e ' use Path::Class "dir", "file"; dir("deleteme/test/../test/path/") ->contains(file("deleteme/test/../test/path/somefile")) or print "FAIL!!\n" '
This change is breaking some of the auto-generated dev scripts for RapidApp users, which are already out in the wild, so the sooner this can be fixed (broken in v0.36 on CPAN) the better.