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

for lines() hangs when $*ARGFILES consists of 2 or more files #4692

Closed
p6rt opened this issue Oct 29, 2015 · 6 comments
Closed

for lines() hangs when $*ARGFILES consists of 2 or more files #4692

p6rt opened this issue Oct 29, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2015

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

Searchable as RT126494$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2015

From doug@veritablesoftware.com

Perl 6 Version​:

This is perl6 version 2015.10-49-ga333147 built on MoarVM version 2015.10

OS​:

Linux Mint 17.2

uname -a

Linux <hostname> 3.16.0-38-generic #​52~14.04.1-Ubuntu SMP Fri May 8
09​:43​:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

When I run this program with one file on the command line it works​:

#!/usr/bin/env perl6

use v6;

for lines() {
  .say;
}

If I specify 2 or more files on the command line, it cats them together
as expected, but it hangs at the end.

@p6rt
Copy link
Author

p6rt commented May 7, 2016

From @smls

It works fine for me on a current Rakudo. (I'm using Linux, like the requestor.)

The ticket can probably be closed once tests have been added for this case.

@p6rt
Copy link
Author

p6rt commented May 7, 2016

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

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @usev6

There was already a (passing) test for this in S16-filehandles/argfiles.t (added with commit a4721fe09d).

I verified that said test hangs with rakudo on commit a4721fe09d. I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed May 8, 2016
@p6rt
Copy link
Author

p6rt commented May 8, 2016

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

@p6rt
Copy link
Author

p6rt commented May 9, 2016

From doug@veritablesoftware.com

I tried to reply on RT, but I couldn't. Was not able to reproduce on
more current perl6​:

This is Rakudo version 2016.02-189-g8437418 built on MoarVM version
2016.02-33-g1e3d2ac

Thanks!

On 5/7/2016 1​:07 PM, Sam S. via RT wrote​:

It works fine for me on a current Rakudo. (I'm using Linux, like the requestor.)

The ticket can probably be closed once tests have been added for this case.

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