| Summary: | [PATCH] use "less -is" for man(1) instead of "more -s" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Roman Shterenzon <roman> | ||||
| Component: | gnu | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.2-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Roman Shterenzon
2001-01-22 15:50:01 UTC
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... 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 PAGER is a certified way to change the default pager used by man(1). |