Skip to content

Conversation

kentfredric
Copy link
Contributor

This way, any relative paths become absolute as soon as possible,
so that if chdir happens between "new" and "load_profiles", the loaded
file won't magically change.

This also aims to turn the <do "file.pm"> into a <do "/path/to/File.pm">
as the former no longer reads from "." since Perl 5.25.11, as paths
with neither leading "./" or leading "/" imply @inc traversal.

This aims to resolve RT#120671

https://rt.cpan.org/Ticket/Display.html?id=120671

This way, any relative paths become absolute as soon as possible,
so that if chdir happens between "new" and "load_profiles", the loaded
file won't magically change.

This also aims to turn the <do "file.pm"> into a <do "/path/to/File.pm">
as the former no longer reads from "." since Perl 5.25.11, as paths
with neither leading "./" or leading "/" imply @inc traversal.

This aims to resolve RT#120671

https://rt.cpan.org/Ticket/Display.html?id=120671
@dnmfarrell dnmfarrell merged commit 07a5939 into dnmfarrell:master Aug 27, 2017
@dnmfarrell
Copy link
Owner

Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants