Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO::Path::spurt should invalidate $!e #4520

Closed
p6rt opened this issue Sep 6, 2015 · 5 comments
Closed

IO::Path::spurt should invalidate $!e #4520

p6rt opened this issue Sep 6, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 6, 2015

Migrated from rt.perl.org#126006 (status was 'resolved')

Searchable as RT126006$

@p6rt
Copy link
Author

p6rt commented Sep 6, 2015

From @dakkar

This code​::

  my $f = '/tmp/thing'.IO;
  $f.spurt('something');
  say $f.e;

prints ``False``, although the file is actually there.

The simplest fix I could think of is
https://github.com/dakkar/rakudo/commit/ccc19ed95b2483ce816aecbaff6563ac1027ae91
but I'm not sure where / how to add a test for it.

--
  Dakkar - <Mobilis in mobile>
  GPG public key fingerprint = A071 E618 DD2C 5901 9574
  6FE2 40EA 9883 7519 3F88
  key id = 0x75193F88

Breadth-first search is the bulldozer of science.
  -- Randy Goebel

@p6rt
Copy link
Author

p6rt commented Sep 20, 2015

From @moritz

Fixed with this commit​:

commit 386153c387818173d0195b3d93e7d5705a8d6113
Author​: Moritz Lenz <moritz@​faui2k3.org>
Date​: 2015-09-20 17​:06​:42 +0000

  RT #​126006​: after .spurt, the file exists

src/core/IO/Path.pm | 1 +
1 file changed, 1 insertion(+)

@p6rt
Copy link
Author

p6rt commented Jul 5, 2016

From @zoffixznet

On Sun Sep 20 10​:07​:22 2015, moritz wrote​:

Fixed with this commit​:

Thank you. Tests added​: Raku/roast@4afc0db991

@p6rt
Copy link
Author

p6rt commented Jul 5, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 5, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 5, 2016
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant