develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22329] v5.8.0: perldoc -m does not accept options in PAGER

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
May 31, 2003 03:18
Subject:
Re: [perl #22329] v5.8.0: perldoc -m does not accept options in PAGER
Message ID:
20030531101612.GH9980@windhund.local.
On Mon, May 26, 2003 at 04:12:22PM -0000, Manoj Kumar wrote:
> When invoked with -m, perldoc does not accept options
> in PAGER (e.g., PAGER="less -isr").  The offending
> code is below (starts at line 473 in the file):

Technically, you should be setting that up as:

PAGER=less
LESS=-isr

more works similarly.


> if ($opt_m) {
>     foreach my $pager (@pagers) {
>         if (system($pager, @found) == 0) {
> 
> One fix is to pass a single argument to system(),
> perhaps like this:
> 
>        if (system("$pager @found") == 0) {
> 
> This assumes module pathnames need not be quoted.

-- 
I knew right away that my sock and your eyebrows could be best friends.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About