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
Rakudo hangs if you try to read $*IN when -n is used (perl6 -ne 'say $*IN.get' file) #5286
Comments
From @AlexDanielSo, in this bug report we will be attempting to read $*IN when we are already $*IN.get() hangs if the file is listed as an argument, but does not hang if it is piped Command: Result: Interestingly, it does not hang if instead of listing the files you actually pipe something: Command: Result: Now, obviously, it is a little bit weird for the user to try to read from $*IN when -n flag is Also, since it does not hang if proper STDIN is present, I think that it should work. |
From @geekosaurOn Sun, May 1, 2016 at 7:11 AM, Alex Jakimenko <perl6-bugs-followup@perl.org
Not that weird. Let the loop read chunk headers, and read/process the rest -- |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetThe code you provided doesn't hang, it waits for input from $*IN. If you type enough (or press ^D), the program will run. -n flag sets $_ to each line of the given file. Would you please clarify what the problematic issue is? |
From @AlexDanielOn 2016-07-09 10:51:13, cpan@zoffix.com wrote:
Right! Right… For some reason I was assuming that stdin will be substituted with file contents, hmm. If it is supposed to be this way, then yeah, there's no problem, and we can probably reject this. But do we need a test? |
From @zoffixznetIf there's no bug, then I'll close this without tests. If any general tests aren't complete for the methods involved in the report, they will be added as part of my upcoming work to increase roast coverage. -- |
@zoffixznet - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#128046 (status was 'rejected')
Searchable as RT128046$
The text was updated successfully, but these errors were encountered: