Re: man PAGER setting with 'less'

nospam_at_none.com
Date: 04/07/04


Date: Wed, 7 Apr 2004 20:56:48 +0000 (UTC)

Chris F.A. Johnson <c.fa.johnson@rogers.com> wrote:

>> man -a something
>>
>> On some systems, Solaris I think, less loads all the pages at once, ie, i can use
>>
>>: n
>>
>> to go to the next man page that match, and q to exit completely.
>>
>> However, on Linux, man page seem to call less for each individual
>> manpage, one at a time. as a result, there's no easy way for me to see
>> how many matches there are, and if I want to quit, I have to repeatly
>> press the q key until there's no more page...
>>
>> Is there a way to modify this behavior? have man call less only once
>> with all the matching pages?

> man -a printf | ${PAGER:-less}

% man -a printf | ${PAGER:-less}
Bad : modifier in $ (-).

did I miss a quote somewhere? what is it suppose to do?



Relevant Pages


Loading