Skip Menu |
Report information
Id: 131242
Status: resolved
Priority: 0/
Queue: perl6

Owner: cpan [at] zoffix.com
Requestors: mt1957 [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Tue, 2 May 2017 12:30:33 +0200
To: rakudobug [...] perl.org
From: Marcel Timmerman <mt1957 [...] gmail.com>
Subject: Bug IO::Path method move
Download (untitled) / with headers
text/plain 519b
With Rakudo version 2017.04.3-66-g7648793 built on MoarVM version 2017.04-44-gf0db882 implementing Perl 6.c. on a system (uname -a) Linux h03-fedora 4.10.11-100.fc24.x86_64 #1 SMP Tue Apr 18 17:25:04 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I see the following problem Moving a file where destination is the same as its source, two things can happen a) program hangs or b) file is deleted. I would expect an X::IO::Move exception with a proper message. Example.: 'abc.txt'.IO.move('abc.txt'); Regards, Marcel
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 843b
On Tue, 02 May 2017 03:30:44 -0700, mt1957@gmail.com wrote: Show quoted text
> With Rakudo version 2017.04.3-66-g7648793 built on MoarVM version > 2017.04-44-gf0db882 > implementing Perl 6.c. on a system (uname -a) Linux h03-fedora > 4.10.11-100.fc24.x86_64 #1 SMP Tue Apr 18 17:25:04 UTC 2017 x86_64 > x86_64 x86_64 GNU/Linux > > I see the following problem > > Moving a file where destination is the same as its source, two things > can happen a) program hangs or b) file is deleted. I would expect an > X::IO::Move exception with a proper message. > > Example.: 'abc.txt'.IO.move('abc.txt'); > > > Regards, > > Marcel
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/08a8075f91 Tests: https://github.com/perl6/roast/commit/4fdb8504cd Docs: https://github.com/perl6/doc/commit/eca21ff851 -- IO grant
Date: Tue, 2 May 2017 15:39:59 +0200
From: Marcel Timmerman <mt1957 [...] gmail.com>
To: perl6-compiler [...] perl.org
Subject: Re: [perl #131242] Bug IO::Path method move
Thanks very much Marcel


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org