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
Proc::Async running with yes command returns superfluous output and hangs #6584
Comments
From @titsukiSee the following result: $ perl6 -e 'my $proc = Proc::Async.new("yes"); $proc.stdout.head(1).tap(&say); await $proc.start;' y I think tap(&say) should output just a 'y' char and completes its work. $ perl6 --version |
From @geekosaurOn Sat, Oct 7, 2017 at 10:21 PM, Itsuki Toyota <perl6-bugs-followup@perl.org
No guarantee it's line based, nor do pipes deliver output in lines. You https://docs.perl6.org/type/Supply#method_lines -- |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielI created this doc issue: Raku/doc#1591 On 2017-10-07 19:33:40, allbery.b@gmail.com wrote:
|
From @jnthnOn Sat, 07 Oct 2017 19:33:40 -0700, allbery.b@gmail.com wrote:
Indeed; the Supply objects returned from Proc::Async just pass on the data that arrives, as it arrives, in the chunks that it arrives in. Often one wants all of the output, so parsing it into lines by default would just add a load of overhead to that case. The `.lines` method is the correct way for those wanting line-by-line output. |
From @AlexDanielI'll close this in favor of the doc issue mentioned above. I'm pretty sure this needs a corresponding [DETRAP] ticket, but that tag is not a thing *yet*. For now we only document these things. Eventually I'll get to it, but this a long-term thingie (like v6.d or v6.e or whatever). On 2017-10-09 01:27:33, jnthn@jnthn.net wrote:
|
@AlexDaniel - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#132242 (status was 'rejected')
Searchable as RT132242$
The text was updated successfully, but these errors were encountered: