Hello Bastien,

On 1/30/21 12:29 AM, roucaries.bast...@gmail.com wrote:
> From: Bastien Roucariès <ro...@debian.org>
> 
> More is the default pager according to mailx manual page of POSIX.1-2001 to
> POSIX.1-2017. Mention it.
> ---
>  man7/environ.7 | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/man7/environ.7 b/man7/environ.7
> index 9ac86f357..3c2769bfb 100644
> --- a/man7/environ.7
> +++ b/man7/environ.7
> @@ -135,7 +135,12 @@ The terminal type for which output is to be prepared.
>  The user's preferred utility to display text files.
>  Any string acceptable as a command_string operand to the
>  .I sh\ \-c
> -command shall be valid.
> +command shall be valid. If the
> +.B PAGER
> +variable is null or not set,
> +command could fallback
> +.B more (1)
> +or any suitable paging utility default defined system-wise.

I don't think I've used more(1) in the last 20 years.
Notwithstanding what POSIX may say, it is simply odd to
mention more(1) but not less(1).

>  .TP
>  .BR EDITOR / VISUAL
>  The user's preferred utility to edit text files.
> @@ -348,6 +353,7 @@ and strictly conformant to POSIX.1-2001.
>  .BR csh (1),
>  .BR env (1),
>  .BR login (1),
> +.BR more (1),

This definitely doesn't warrant an entry in the SEE ALSO section...
SEE ALSO is about other pages that might provide information related
to the topic of this page. more(1) doesn't really add anything to
the explanation of environment variables.

>  .BR printenv (1),
>  .BR sh (1),
>  .BR su (1),

I instead applied the patch below.

Thanks,

Michael

--- a/man7/environ.7
+++ b/man7/environ.7
@@ -141,6 +141,13 @@ The user's preferred utility to display text files.
 Any string acceptable as a command-string operand to the
 .I sh\ \-c
 command shall be valid.
+If
+.B PAGER
+is null or is not set,
+then applications that launch a pager will default to a program such as
+.BR less (1)
+or
+.BR more (1).
 .TP
 .BR EDITOR / VISUAL
 The user's preferred utility to edit text files.

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Reply via email to