Bug 984425

Summary: journalctl does not honor pager options ($LESS)
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: systemdAssignee: systemd-maint
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: johannbg, lnykryn, msekleta, notting, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-26 01:02:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Páral 2013-07-15 08:20:51 UTC
Description of problem:
journalctl does not honor 'less' environment options. I have some options configured:

$ echo $LESS
--ignore-case --RAW-CONTROL-CHARS --quit-if-one-screen --no-init

But if I run "journalctl", I don't have case insensitive search enabled. The same problem is with "SYSTEMD_PAGER=less journalctl". However, if I run "journalctl | less", everything works correctly.

Since journalctl uses less by default, shouldn't it invoke it the same way the user is used to (honoring $LESS env variable)? It would be convenient and appreciated.

Version-Release number of selected component (if applicable):
systemd-204-9.fc19.x86_64
less-458-3.fc19.x86_64

How reproducible:
always

Steps to Reproduce:
1. configure $LESS env var
2. run journalctl and see that the less configuration does not apply

Comment 1 Lennart Poettering 2013-07-26 01:02:02 UTC
We can#t really do that, because we require a number of LESS values set. You can still override this by assing the arguments to $PAGER as command line arguments.

See https://bugzilla.redhat.com/show_bug.cgi?id=868383