Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[io grant] Fix $*CWD inside IO::Path.dir's :test Callable
Fixes two issues: 1) When user passes :CWD arg, the expectation would be that :CWD is available as $*CWD inside :test 2) Because we use `gather` by the time we get to run the :test Callable, we might already be outside even a user-set $*CWD, such us when using `&indir`, so the $*CWD used will be wrong Fix by giving `gather` its own $*CWD to use. We use a temp var to avoid issues with .IO coerser using an empty $*CWD for :$!CWD param and we don't use `temp` because it's 2x slower than a temp var. Bug find: https://irclog.perlgeek.de/perl6-dev/2017-04-21#i_14462573
- Loading branch information