Bug#1011525: systemd: when running journalctl, $LESS is unconditionally set to FRSXMK

Vincent Lefevre vincent at vinc17.net
Wed May 25 13:51:52 BST 2022


Control: reopen -1

On 2022-05-25 13:28:31 +0200, Michael Biebl wrote:
> Am 24.05.22 um 15:23 schrieb Vincent Lefevre:
> > Package: systemd
> > Version: 251-2
> > Severity: minor
> > 
> > Note: on my machine, /usr/bin/pager points to the "less" alternative.
> > 
> > When I run journalctl, searching for strings in the "less" pager is
> > case-sensitive, while I have -i in $LESS.
> > 
> > I've eventually found that my LESS environment variable was replaced
> > by "FRSXMK", but this is not documented.
> 
> This is documented here:
> https://www.freedesktop.org/software/systemd/man/journalctl.html#%24SYSTEMD_LESS

There is no mention of the LESS environment variable there.
As I read "options passed to less", this consists in running
"less -FRSXMK" (this is the usual way options are passed to
programs and has the advantage to honor some options of the
user's LESS environment variable, like "-i"). If it passes
options via the LESS environment variable, then the manual
should say something like

  Override the options passed to less via the LESS environment
  variable, which is set to "FRSXMK" by default.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-systemd-maintainers mailing list