Skip Menu |

This queue is for tickets about the Perl6-Slurp CPAN distribution.

Report information
The Basics
Id: 78703
Status: open
Priority: 0/
Queue: Perl6-Slurp

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: slurp program output on win32
Date: Wed, 01 Aug 2012 10:45:27 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
I got a cpantesters report http://www.cpantesters.org/cpan/report/5c9097d5-7343-1014-961f-94cd4fed7701 osname=MSWin32, osvers=5.2, archname=MSWin32-x86-multi-thread List form of pipe open not implemented at C:\Perl16\cpan\build\Perl6-Slurp-0.051001-C7bWL6/blib/lib/Perl6/Slurp.pm line 163. which I think says that Perl6::Slurp has trouble slurping program output on that system due to open() not supporting pipes. As a suggestion for a feature I'd be good if Perl6::Slurp recognised when a pipe open can't be used and instead ran the program directing output to a temporary file and then slurped that. I don't know if that'd be easy or hard but it'd be helpful for slurp users not to have to worry quite how program output must captured on a particular system.
Subject: Re: [rt.cpan.org #78703] slurp program output on win32
Date: Wed, 1 Aug 2012 11:13:48 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Kevin, Thanks for the report. Show quoted text
> As a suggestion for a feature I'd be good if Perl6::Slurp recognised > when a pipe open can't be used and instead ran the program directing > output to a temporary file and then slurped that.
I'd be happy if *Perl* did that within the open() function. But I'm really not comfortable having Perl6::Slurp creating unrequested files (even temporaries). Show quoted text
> it'd be helpful for slurp > users not to have to worry quite how program output must captured on a > particular system.
It'd be helpful for *all* users not to have to worry about that, which is why I think the fix belongs in open() not slurp(). Damian
Subject: Re: [rt.cpan.org #78703] slurp program output on win32
Date: Wed, 01 Aug 2012 11:41:52 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
"damian@conway.org via RT" <bug-Perl6-Slurp@rt.cpan.org> writes: Show quoted text
> > I'd be happy if *Perl* did that within the open() function.
I wondered if there's a difference between opening a pipe from a concurrently running program versus spawning a program which runs to completion, if you know what I mean, and if that's the reason pipe open() doesn't already work.
Subject: Re: [rt.cpan.org #78703] slurp program output on win32
Date: Wed, 1 Aug 2012 11:51:17 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> I wondered if there's a difference between opening a pipe from a > concurrently running program versus spawning a program which runs to > completion, if you know what I mean, and if that's the reason pipe > open() doesn't already work.
Sorry, I don't know. I try to make sure I don't ever have anything to do with Windows. And I usually just assume that "Windows" and "doesn't work" are strongly correlated. ;-) I have, at least, now documented this issue for the next release. Thanks again, Damian
Subject: Re: [rt.cpan.org #78703] slurp program output on win32
Date: Wed, 01 Aug 2012 12:03:02 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
"damian@conway.org via RT" <bug-Perl6-Slurp@rt.cpan.org> writes: Show quoted text
> > I try to make sure I don't ever have anything to do > with Windows. And I usually just assume that "Windows" and "doesn't work" > are strongly correlated. ;-)
Yes. Does perl6 do better than perl5? If Perl6::Slurp is an emulation of that ... -- Some people say cricket is like watching grass grow. Firstly that's not true as usually the grass is dying on the wicket, and secondly International Rules Grass Growing is much pacier. Cricket goes 5 days and ends in a draw, grass growing is 4 days and sure to have a result.
Subject: Re: [rt.cpan.org #78703] slurp program output on win32
Date: Wed, 1 Aug 2012 12:35:18 +1000
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> Does perl6 do better than perl5? If Perl6::Slurp is an emulation of > that ...
No, Perl6::Slurp isn't emulating a Perl 6 bug here. Perl 6 is *designed* to do a better job; whether it can be *implemented* to do so, I have yet to see. Damian