diff options
author | 2020-07-20 14:25:22 +0000 | |
---|---|---|
committer | 2020-07-20 14:25:22 +0000 | |
commit | c97716918620e3596e920a0deb232aa9f256d115 (patch) | |
tree | 36b8e003f4f548bcc0204388493574f1339c1d9c | |
parent | Mention hostid and checksum (diff) | |
download | wireguard-openbsd-c97716918620e3596e920a0deb232aa9f256d115.tar.xz wireguard-openbsd-c97716918620e3596e920a0deb232aa9f256d115.zip |
Switch the default pager from "more -s" to "less".
POSIX explicitly allows using a different default pager if that
is documented. The pager provided in the OpenBSD base system is
less(1). It can merely be called as more(1) for compatibility.
Our man(1) implementation uses less(1) features that traditional
more(1) did not provide, in particular tagging. Besides, as noted
by deraadt@, the user interface of less(1) is slightly more refined
and preferable over the user inferface of more(1).
This switch was originally suggested by Ian Ropers.
As explained by jmc@ and deraadt@, the -s flag was added a very
long time ago when an antique version of groff(1) had an annoying
bug in terminal output that would randomly display blank lines in
the middle of pages. Clearly, -s has no longer been needed for
many years, so drop it from the default pager invocation.
OK deraadt@ jmc@ martijn@ job@
-rw-r--r-- | usr.bin/mandoc/apropos.1 | 8 | ||||
-rw-r--r-- | usr.bin/mandoc/main.c | 4 | ||||
-rw-r--r-- | usr.bin/mandoc/man.1 | 8 | ||||
-rw-r--r-- | usr.bin/mandoc/mandoc.1 | 8 |
4 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/mandoc/apropos.1 b/usr.bin/mandoc/apropos.1 index 401976f661e..00cffb4fb3f 100644 --- a/usr.bin/mandoc/apropos.1 +++ b/usr.bin/mandoc/apropos.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apropos.1,v 1.41 2018/11/22 12:32:10 schwarze Exp $ +.\" $OpenBSD: apropos.1,v 1.42 2020/07/20 14:25:22 schwarze Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 22 2018 $ +.Dd $Mdocdate: July 20 2020 $ .Dt APROPOS 1 .Os .Sh NAME @@ -340,7 +340,7 @@ types appearing in function arguments in the SYNOPSIS Any non-empty value of the environment variable .Ev MANPAGER is used instead of the standard pagination program, -.Xr more 1 ; +.Xr less 1 ; see .Xr man 1 for details. @@ -363,7 +363,7 @@ Specifies the pagination program to use when .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Xr more 1 +.Xr less 1 .Fl s is used. Only used if diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 5528a3a3fc8..34aa1e9382c 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.253 2020/06/15 17:25:03 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.254 2020/07/20 14:25:22 schwarze Exp $ */ /* * Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> @@ -1194,7 +1194,7 @@ spawn_pager(struct outstate *outst, char *tag_target) if (pager == NULL || *pager == '\0') pager = getenv("PAGER"); if (pager == NULL || *pager == '\0') - pager = "more -s"; + pager = "less"; cp = mandoc_strdup(pager); /* diff --git a/usr.bin/mandoc/man.1 b/usr.bin/mandoc/man.1 index c8229ebd03c..7299c14c393 100644 --- a/usr.bin/mandoc/man.1 +++ b/usr.bin/mandoc/man.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: man.1,v 1.37 2020/06/17 19:41:25 schwarze Exp $ +.\" $OpenBSD: man.1,v 1.38 2020/07/20 14:25:22 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: June 17 2020 $ +.Dd $Mdocdate: July 20 2020 $ .Dt MAN 1 .Os .Sh NAME @@ -275,7 +275,7 @@ is case insensitive. Any non-empty value of the environment variable .Ev MANPAGER is used instead of the standard pagination program, -.Xr more 1 . +.Xr less 1 . If .Xr less 1 is used, the interactive @@ -329,7 +329,7 @@ Specifies the pagination program to use when .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Xr more 1 +.Xr less 1 .Fl s is used. .El diff --git a/usr.bin/mandoc/mandoc.1 b/usr.bin/mandoc/mandoc.1 index d07eaba5c73..64e005ed175 100644 --- a/usr.bin/mandoc/mandoc.1 +++ b/usr.bin/mandoc/mandoc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mandoc.1,v 1.168 2020/06/15 18:05:25 schwarze Exp $ +.\" $OpenBSD: mandoc.1,v 1.169 2020/07/20 14:25:22 schwarze Exp $ .\" .\" Copyright (c) 2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 15 2020 $ +.Dd $Mdocdate: July 20 2020 $ .Dt MANDOC 1 .Os .Sh NAME @@ -650,7 +650,7 @@ It never affects the interpretation of input files. Any non-empty value of the environment variable .Ev MANPAGER is used instead of the standard pagination program, -.Xr more 1 ; +.Xr less 1 ; see .Xr man 1 for details. @@ -664,7 +664,7 @@ Specifies the pagination program to use when .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Xr more 1 +.Xr less 1 .Fl s is used. Only used if |