Skip to content
Permalink
Browse files

Fix missing path volume after .. is resolved

Fixes issue on windows where `$*CWD.resolve` would include the volume but `$*CWD.add("../foo").resolve` would not.
  • Loading branch information...
ugexe committed Nov 20, 2018
1 parent 5720ef2 commit 8854bbd3fc940174308237aa3402ec23f2114fcc
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/IO/Path.pm6
@@ -283,8 +283,9 @@ my class IO::Path is Cool does IO {
if nqp::iseq_s($part, $up) {
next unless $res-list;
nqp::pop_s($res-list);
$resolved = $res-list ?? $sep ~ nqp::join($sep, $res-list)
!! $empty;
$resolved = $res-list
?? nqp::concat(nqp::concat($volume, $sep), nqp::join($sep, $res-list))
!! $empty;
next;
}

0 comments on commit 8854bbd

Please sign in to comment.
You can’t perform that action at this time.