From roman@trinity.harmonic.co.il  Mon Jan 22 07:49:37 2001
Return-Path: <roman@trinity.harmonic.co.il>
Received: from trinity.harmonic.co.il (jupiter.harmonic.co.il [192.116.140.62])
	by hub.freebsd.org (Postfix) with ESMTP id 3BE6D37B404
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jan 2001 07:49:36 -0800 (PST)
Received: (from roman@localhost)
	by trinity.harmonic.co.il (8.11.1/8.11.1) id f0MFmne08820;
	Mon, 22 Jan 2001 17:48:49 +0200 (IST)
	(envelope-from roman)
Message-Id: <200101221548.f0MFmne08820@trinity.harmonic.co.il>
Date: Mon, 22 Jan 2001 17:48:49 +0200 (IST)
From: roman@xpert.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] use "less -is" for man(1) instead of "more -s"
X-Send-Pr-Version: 3.2

>Number:         24530
>Category:       gnu
>Synopsis:       [PATCH] use "less -is" for man(1) instead of "more -s"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 22 07:50:01 PST 2001
>Closed-Date:    Mon Feb 19 23:52:37 PST 2001
>Last-Modified:  Mon Feb 19 23:55:42 PST 2001
>Originator:     Roman Shterenzon
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:


>Description:

The recent FreeBSD releases have less(1) in the base system, it's possible
to use it as a pager for man(1) since it has some benefits.
For example - pressing "G" won't exit the pager at the text end.
"less -is" is used on most Linux distros as a man pager.

However, something has to be done with /usr/share/skel/* files as well, since
they define PAGER ..

>How-To-Repeat:


>Fix:
--- /usr/src/gnu/usr.bin/man/Makefile.inc	Mon Dec 18 10:12:14 2000
+++ Makefile.inc	Mon Jan 22 17:44:38 2001
@@ -5,7 +5,7 @@
 #
 libdir=			/etc
 bindir=			${BINDIR}
-pager=			more -s
+pager=			less -is
 manpath_config_file=	/etc/manpath.config
 troff=			/usr/bin/groff -S -mandoc
 # -Tascii or localized encoding added automatically

>Release-Note:
>Audit-Trail:

From: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
To: roman@xpert.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: gnu/24530: [PATCH] use "less -is" for man(1) instead of "more -s"
Date: Tue, 23 Jan 2001 09:15:39 +0300

 On Mon, Jan 22, 2001 at 05:48:49PM +0200, roman@xpert.com wrote:
 > 
 > The recent FreeBSD releases have less(1) in the base system, it's possible
 > to use it as a pager for man(1) since it has some benefits.
 
   But our more(1) is actually a less(1):
 
 -r-xr-xr-x  2 root  wheel  87180 21  13:25 /usr/bin/less
 -r-xr-xr-x  2 root  wheel  87180 21  13:25 /usr/bin/more
 
 > For example - pressing "G" won't exit the pager at the text end.
 > "less -is" is used on most Linux distros as a man pager.
 > 
 > However, something has to be done with /usr/share/skel/* files as well, since
 > they define PAGER ..
 
 -- 
 Alex Kapranoff,                              Voice: +7(0832)791845
 We've lived 3 weeks in the brand new millenium...
 

From: Roman Shterenzon <roman@xpert.com>
To: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
Cc: <FreeBSD-gnats-submit@FreeBSD.ORG>
Subject: Re: gnu/24530: [PATCH] use "less -is" for man(1) instead of "more
 -s"
Date: Tue, 23 Jan 2001 10:09:12 +0200 (IST)

 On Tue, 23 Jan 2001, Alex Kapranoff wrote:
 
 > On Mon, Jan 22, 2001 at 05:48:49PM +0200, roman@xpert.com wrote:
 > >
 > > The recent FreeBSD releases have less(1) in the base system, it's possi=
 ble
 > > to use it as a pager for man(1) since it has some benefits.
 >
 >   But our more(1) is actually a less(1):
 >
 > -r-xr-xr-x  2 root  wheel  87180 21 =D1=CE=D7 13:25 /usr/bin/less
 > -r-xr-xr-x  2 root  wheel  87180 21 =D1=CE=D7 13:25 /usr/bin/more
 
 Check line 105 at main.c of less:
  if (strcmp(__progname, "more") =3D=3D 0)
                 more_mode =3D 1;
 >
 > > For example - pressing "G" won't exit the pager at the text end.
 > > "less -is" is used on most Linux distros as a man pager.
 > >
 > > However, something has to be done with /usr/share/skel/* files as well,=
  since
 > > they define PAGER ..
 >
 > --
 > Alex Kapranoff,                              Voice: +7(0832)791845
 > We've lived 3 weeks in the brand new millenium...
 >
 
 --Roman Shterenzon, UNIX System Administrator and Consultant
 [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ]
 
 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Feb 19 23:52:37 PST 2001 
State-Changed-Why:  
PAGER is a certified way to change the default pager used by man(1). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24530 
>Unformatted:
