Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread mt1957 via RT
Thanks very much
Marcel


Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread Marcel Timmerman

Thanks very much
Marcel


[perl #131242] Bug IO::Path method move

2017-05-02 Thread Zoffix Znet via RT
On Tue, 02 May 2017 03:30:44 -0700, mt1...@gmail.com wrote:
> 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


[perl #131242] Bug IO::Path method move

2017-05-02 Thread Zoffix Znet via RT
On Tue, 02 May 2017 03:30:44 -0700, mt1...@gmail.com wrote:
> 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


[perl #131242] Bug IO::Path method move

2017-05-02 Thread via RT
# New Ticket Created by  mt1957 
# Please include the string:  [perl #131242]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=131242 >


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