Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge
On 18 Apr 2006, Loïc Minier uttered the following:
> reassign 363250 man retitle 363250 Please clarify how $PAGER is
> invoked in the man manpage stop
>
> Hi,
>
> 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.
I expect to be able to pipe stuff to $PAGER, or invoke $PAGER
on a text file, like so:
% cat ~/.bash_profile | $PAGER
% $PAGER ~/.bash_profile
manoj
--
Be regular and orderly in your life, so that you may be violent and
original in your work. -- Flaubert
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: