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