[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge

reassign 363250 man
retitle 363250 Please clarify how $PAGER is invoked in the man manpage


On Tue, Apr 18, 2006, Rohan Dhruva wrote:
> export PAGER="col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -"

 This $PAGER definition makes the assumption that it's passed to sh -c
 (you use pipes and quotes).  The man manpage doesn't say that $PAGER is
 passed to sh -c, it says it will use $PAGER as the program to display
 the manual page.

 I suggest you use:
    export PAGER="sh -c \"col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -\""

 which explicitely calls sh -c to handle pipes and quotes in the
 expected way.

 You may also use your own /usr/local/bin/pager with:

    col -b | view -c 'set ft=man nomod nolist titlestring=MANPAGE' -
 and with PAGER=/usr/local/bin/pager.

 I am reassigning to man for the man manpage to be clarified with
 respect to the way $PAGER is called.

Loïc Minier <lool@dooz.org>
"You can gtk_main_run, but you can't gtk_widget_hide." --danw, 19-jul-04

Reply to: