Bug 984425 - journalctl does not honor pager options ($LESS)
Summary: journalctl does not honor pager options ($LESS)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-15 08:20 UTC by Kamil Páral
Modified: 2013-07-26 01:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-26 01:02:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.