Fixed with 02fdcf9 , tests needed

> On 04 Aug 2016, at 16:19, Aleks-Daniel Jakimenko-Aleksejev (via RT) 
> <perl6-bugs-follo...@perl.org> wrote:
> 
> # New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
> # Please include the string:  [perl #128840]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=128840 >
> 
> 
> Code:
> dd ‘-a’.IO.absolute
> 
> Output:
> ""
> 
> Obviously, that's not how it should work. Files with leading dashes are 
> totally
> OK and this should not happen.
> 
> From https://github.com/rakudo/rakudo/blob/nom/src/core/IO/Path.pm#L51 :
> 
> method abspath() {
> $!abspath //= $!path.starts-with('-')
> ?? ''
> !! $!SPEC.rel2abs($!path,$!CWD);
> }
> 
> Perhaps it is there for a reason, but definitely not for a good one.
> 
> The commit that introduced it seems to be 5870906 (it has been like this since
> 2014)
> 
> If somebody has stumbled upon this, then the temporary workaround might be to
> prepend ‘./’ to your paths.
> 
> IRC log: http://irclog.perlgeek.de/perl6/2016-08-04#i_12967414

Reply via email to