On Tue, 11.02.14 16:23, Jason A. Donenfeld (ja...@zx2c4.com) wrote: > > On Tue, Feb 11, 2014 at 7:09 AM, Andrey Borzenkov <arvidj...@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 -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel