[systemd-devel] [PATCH] systemctl: implement auto-pager a la git

Lennart Poettering lennart at poettering.net
Mon Jan 3 16:15:12 PST 2011


On Sun, 02.01.11 08:24, Tollef Fog Heen (tfheen at err.no) wrote:

> 
> ]] Miklos Vajna 
> 
> Hi,
> 
> | I hope the subjects describes the patch enough - though I would like to
> | point out one detail. I guess there can be great flames about the
> | default value of LESS if it's unset - I took FRSX as that's what git
> | uses right now.
> 
> You're not using a default value of LESS, you're always overriding.

The current git version sets $LESS only when it isn't set.

> | +	if (!pager)
> | +		pager = "less";
> 
> Doesn't other distributions have sensible-pager(1) or pager(1)?  Also,
> at least on Debian, less(1) isn't in the base distribution, while
> more(1) comes from util-linux so is always around.

On Fedora we don't have either sensible-pager nor pager.

Can you elaborate on the precise semantics of pager(1) and
sensible-pager(1)? I found the latter man pages online and hence added
this to the things systemctl will now look for by default. But "pager"
was a little bit too generic to find anything. 

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list