Re: Incompatibility between Test::Command and System::Command?

[email protected] (Grzegorz Dzięgielewski)
Newsgroups perl.moose
Message-ID <[email protected]>
W dniu 04.01.2012 22:17, Buddy Burden pisze:
> Grzegorz,
>
>> I've noticed the same thing, but with STDOUT and with Test::Output
>> and/or FastCGI.
>>
>> There is a hack in System::Command for Catalyst which causes this.
>> See https://rt.cpan.org/Public/Bug/Display.html?id=73614
> Ah, good call on the RT ticket.  I've added a comment there as well.
> I was hoping Philippe might weigh in, since I know he frequents the
> list.  But, either way, it looks like it's not going to be fixed any
> time soon.
I'm trying to figure it out in some spare time, so sooner or later
someone will fix it :-P

In mean time i've made a hack which is "fixing" this hack:

open(my $NULL, '>', '/dev/null');
my $ORIGINAL_STDOUT = select($NULL);

<... do what you need using System::Command and/or Git::Repository ...>

select($ORIGINAL_STDOUT);
close($NULL);

-- 
Grzegorz Dzięgielewski
http://jabbas.eu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.