Problems with man and less/more

Ian Smith smithi at nimnet.asn.au
Tue Nov 14 22:29:56 PST 2006


On Tue, 14 Nov 2006, Jeremy Chadwick wrote:
 > On Tue, Nov 14, 2006 at 07:03:24PM +0100, Oliver Fromme wrote:
 > > Just set $PAGER appropriately.  By the way, the default
 > > (if not set) is "more -s", which is the same as "less -s".
 > > Therefore, piping output from man(1) through less(1)
 > > doesn't really make sense.
 > 
 > Maybe this should be done by the default in /etc/profile and
 > /etc/csh.cshrc for people who don't override it?

more and less don't behave quite the same though; I always set $PAGER to
less explicitly in ~/.cshrc (albeit with some extra options) because as
more, getting to the bottom of a file quits, where less requires 'q' to
exit - handy if, say, running '!man something' from inside less .. 

Cheers, Ian



More information about the freebsd-stable mailing list