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

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

Thread Next
From:
Manoj Kumar
Date:
May 26, 2003 15:36
Subject:
[perl #22329] v5.8.0: perldoc -m does not accept options in PAGER
Message ID:
rt-22329-58226.2.48766156825653@rt.perl.org
# New Ticket Created by  Manoj Kumar 
# Please include the string:  [perl #22329]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22329 >


perl v5.8.0

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):

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.

manoj


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com


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