Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 21716
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: perl-user [...] spodhuis.demon.nl
Cc:
AdminCc:

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



Subject: CPAN 'recent' fails, bad pager invocation
Date: Tue, 26 Sep 2006 00:33:01 +0200
To: bug-CPAN [...] rt.cpan.org
From: Phil Pennock <perl-user [...] spodhuis.demon.nl>
CPAN v1.8801, 'recent' command fails because cpan tries to run the literal command 'pager'. One instance of opening the pager is missing the '$' to open the configured pager. Whitespace munging has probably occured in the patch below, but it's so simple that I doubt this is a problem. --- /usr/local/lib/perl5/5.8.8/CPAN.pm- Tue Sep 26 00:20:10 2006 +++ /usr/local/lib/perl5/5.8.8/CPAN.pm Tue Sep 26 00:20:26 2006 @@ -6273,7 +6273,7 @@ saved output to %s\n}, my $fh_pager = FileHandle->new; local($SIG{PIPE}) = "IGNORE"; my $pager = $CPAN::Config->{'pager'} || "cat"; - $fh_pager->open("|pager") + $fh_pager->open("|$pager") or $CPAN::Frontend->mydie(qq{ Could not open pager $pager\: $!}); $CPAN::Frontend->myprint(qq{ -- "Everything has three factors: politics, money, and the right way to do it. In that order." -- Gary Donahue
Subject: Re: [rt.cpan.org #21716] CPAN 'recent' fails, bad pager invocation
Date: Tue, 26 Sep 2006 04:21:25 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Mon, 25 Sep 2006 18:33:15 -0400, "Phil Pennock via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> --- /usr/local/lib/perl5/5.8.8/CPAN.pm- Tue Sep 26 00:20:10 2006 > +++ /usr/local/lib/perl5/5.8.8/CPAN.pm Tue Sep 26 00:20:26 2006
Thanks, this patch has been applied as rev. 896 into subversion. I'm not yet sure if I make a 1.8802. In any case this will be in 1.88_51. Thanks again, -- andreas
Patch applied in 1.88_51. Thanks!