Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing .curupdir breakage
  • Loading branch information
lizmat committed Oct 3, 2014
1 parent 0242728 commit 854ba8d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/core/IO/Spec/Unix.pm
Expand Up @@ -17,10 +17,11 @@ my class IO::Spec::Unix is IO::Spec {
$path
}

method curdir { '.' }
method updir { '..' }
method rootdir { '/' }
method devnull { '/dev/null' }
method curdir { '.' }
method updir { '..' }
method curupdir { none('.','..') }
method rootdir { '/' }
method devnull { '/dev/null' }

method tmpdir {
self.canonpath: first( { .defined && .IO.d && .IO.w },
Expand All @@ -29,8 +30,6 @@ my class IO::Spec::Unix is IO::Spec {
|| self.curdir;
}

method no-parent-or-current-test { none('.', '..') }

method is-absolute( $file ) {
substr( $file, 0, 1 ) eq '/';
}
Expand Down Expand Up @@ -154,6 +153,11 @@ my class IO::Spec::Unix is IO::Spec {
}
self.catdir( self.canonpath($base), $path );
}

method no-parent-or-current-test {
DEPRECATED('curupdir');
none('.', '..');
}
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 854ba8d

Please sign in to comment.