Bug#981171: [PATCH 06/13] Improve pager section by pointing to more

2021-01-29 Thread Bastien ROUCARIES
Le ven. 29 janv. 2021 à 12:28, Michael Kerrisk (man-pages)
 a écrit :
>
> On Fri, 29 Jan 2021 at 12:00, Bastien Roucariès
>  wrote:
> >
> > Le jeudi 28 janvier 2021, 09:31:00 UTC Michael Kerrisk (man-pages) a écrit :
> > > On 1/27/21 4:48 PM, roucaries.bast...@gmail.com wrote:
> > > > From: Bastien Roucariès 
> > > >
> > > > More is the default pager in a lot of system mention it
> > >
> > > Really "more" and not "less"?
> >
> > Yes, debian distribution have been patched to fallback to pager that is less
> > by default. But it is not the standard
>
> I use Fedora. The default is "less" on the applications I looked at.
> When you say "it is not the standard", can you say more precisely what
> you mean?

According to POSIX mailx manual:
PAGER
Determine a string representing an output filtering or pagination
command for writing the output to the terminal. Any string acceptable
as a command_string operand to the sh -c command shall be valid. When
standard output is a terminal device, the message output shall be
piped through the command if the mailx internal variable crt is set to
a value less the number of lines in the message; see Internal
Variables in mailx. If the PAGER variable is null or not set, the
paginator shall be either more or another paginator utility documented
in the system documentation. The effects of this variable are
unspecified if the User Portability Utilities option is not supported.

So it is up to the distribution to use less,
>
> Thanks,
>
> Michael
>
>
> --
> Michael Kerrisk
> Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
> Linux/UNIX System Programming Training: http://man7.org/training/



Bug#981171: [PATCH 06/13] Improve pager section by pointing to more

2021-01-29 Thread Michael Kerrisk (man-pages)
On Fri, 29 Jan 2021 at 12:00, Bastien Roucariès
 wrote:
>
> Le jeudi 28 janvier 2021, 09:31:00 UTC Michael Kerrisk (man-pages) a écrit :
> > On 1/27/21 4:48 PM, roucaries.bast...@gmail.com wrote:
> > > From: Bastien Roucariès 
> > >
> > > More is the default pager in a lot of system mention it
> >
> > Really "more" and not "less"?
>
> Yes, debian distribution have been patched to fallback to pager that is less
> by default. But it is not the standard

I use Fedora. The default is "less" on the applications I looked at.
When you say "it is not the standard", can you say more precisely what
you mean?

Thanks,

Michael


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



Bug#981171: [PATCH 06/13] Improve pager section by pointing to more

2021-01-29 Thread Bastien Roucariès
Le jeudi 28 janvier 2021, 09:31:00 UTC Michael Kerrisk (man-pages) a écrit :
> On 1/27/21 4:48 PM, roucaries.bast...@gmail.com wrote:
> > From: Bastien Roucariès 
> > 
> > More is the default pager in a lot of system mention it
> 
> Really "more" and not "less"?

Yes, debian distribution have been patched to fallback to pager that is less 
by default. But it is not the standard

I plan to add a debian specific patch

Bastien
> 
> On my system, 'git commit' and 'man' use less(1) when PAGER
> is not set.
> 
> Thanks,
> 
> Michael
> 
> > ---
> > 
> >  man7/environ.7 | 8 +++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/man7/environ.7 b/man7/environ.7
> > index 81932d894..981038ea1 100644
> > --- a/man7/environ.7
> > +++ b/man7/environ.7
> > @@ -132,7 +132,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 fall back
> > +.B more (1)
> > +or any suitable paging utility as the system default.
> > 
> >  .TP
> >  .BR EDITOR / VISUAL
> >  The user's preferred utility to edit text files.
> > 
> > @@ -362,6 +367,7 @@ should use instead an explicit \(aq\fB.\fP\(aq.
> > 
> >  .BR env (1),
> >  .BR login (1),
> >  .BR mktemp (1),
> > 
> > +.BR more (1),
> > 
> >  .BR printenv (1),
> >  .BR sh (1),
> >  .BR su (1),



signature.asc
Description: This is a digitally signed message part.


Bug#981171: [PATCH 06/13] Improve pager section by pointing to more

2021-01-28 Thread Michael Kerrisk (man-pages)
On 1/27/21 4:48 PM, roucaries.bast...@gmail.com wrote:
> From: Bastien Roucariès 
> 
> More is the default pager in a lot of system mention it

Really "more" and not "less"?

On my system, 'git commit' and 'man' use less(1) when PAGER 
is not set.

Thanks,

Michael

> ---
>  man7/environ.7 | 8 +++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/man7/environ.7 b/man7/environ.7
> index 81932d894..981038ea1 100644
> --- a/man7/environ.7
> +++ b/man7/environ.7
> @@ -132,7 +132,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 fall back
> +.B more (1)
> +or any suitable paging utility as the system default.
>  .TP
>  .BR EDITOR / VISUAL
>  The user's preferred utility to edit text files.
> @@ -362,6 +367,7 @@ should use instead an explicit \(aq\fB.\fP\(aq.
>  .BR env (1),
>  .BR login (1),
>  .BR mktemp (1),
> +.BR more (1),
>  .BR printenv (1),
>  .BR sh (1),
>  .BR su (1),
> 


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



Bug#981171: [PATCH 06/13] Improve pager section by pointing to more

2021-01-27 Thread roucaries . bastien
From: Bastien Roucariès 

More is the default pager in a lot of system mention it
---
 man7/environ.7 | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/man7/environ.7 b/man7/environ.7
index 81932d894..981038ea1 100644
--- a/man7/environ.7
+++ b/man7/environ.7
@@ -132,7 +132,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 fall back
+.B more (1)
+or any suitable paging utility as the system default.
 .TP
 .BR EDITOR / VISUAL
 The user's preferred utility to edit text files.
@@ -362,6 +367,7 @@ should use instead an explicit \(aq\fB.\fP\(aq.
 .BR env (1),
 .BR login (1),
 .BR mktemp (1),
+.BR more (1),
 .BR printenv (1),
 .BR sh (1),
 .BR su (1),
-- 
2.29.2