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

Vincent Lefevre vincent at vinc17.net
Wed May 25 14:41:17 BST 2022


On 2022-05-25 15:22:26 +0200, Michael Biebl wrote:
> Am 25.05.22 um 14:51 schrieb Vincent Lefevre:
> 
> > 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.
> 
> Mentioning the LESS variable here is an implementation detail and I don't
> see how it makes it makes it any clearer what options are passed to less.

This is not just an implementation detail, because it has a visible
effect on the behavior when the user has a LESS environment variable.

  export LESS=FRSXMK ; less

is not the same thing as

  less -FRSXMK

So the user needs to know that systemd chooses something equivalent
to the former.

-- 
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