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

Michael Biebl biebl at debian.org
Wed May 25 14:49:33 BST 2022


Am 25.05.2022 um 15:41 schrieb Vincent Lefevre:
> 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.


No, not really. The documentation says pretty clearly and explicitly 
which options are passed to less and ways to override that (and it does 
so reliably).

It doesn't go into details about LESS because that would only be a 
distraction.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220525/baefb98a/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list