[systemd-devel] [PATCH] pager: remove --no-init setting from LESS options

Lennart Poettering lennart at poettering.net
Tue Feb 11 09:45:40 PST 2014

On Tue, 11.02.14 16:23, Jason A. Donenfeld (Jason at zx2c4.com) wrote:

> On Tue, Feb 11, 2014 at 7:09 AM, Andrey Borzenkov <arvidjaar at gmail.com> wrote:
> > Should not it simply respect existing LESS value? Or, for that matter,
> > SYSTEMD_LESS if someone thinks of a good reason to have different
> > settings?
> Yes, one way would be to look at LESS from the environment, and prefer
> this to the internal ones if it exists. Then there'd have to be some
> logic for appending "+G" for the scroll-to-end functionality.

Well, we had requests like this, and we went forth and back a
bit. Ultimately, the way we invoke the pager implicitly for doing
auto-paging is different from manually started pagers (since we want the
mode where the pager is shortcut when the data is short, and since we
optionally want to jump to the end), hence I think it is the right thing
for us to override $LESS instead of using the normal user-configured
$LESS. This way the normal $LESS is left to be the settings for manually
started pagers, but not for our auto-paging. Now, if we'd $SYSTEMD_LESS,
then we could open this up for user control, so that people can even
override the $LESS value for auto-paging. hence I'd be happy to merge a
patch for this.


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list