Red Hat Bugzilla – Bug 984425
journalctl does not honor pager options ($LESS)
Last modified: 2013-07-25 21:02:02 EDT
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):
Steps to Reproduce:
1. configure $LESS env var
2. run journalctl and see that the less configuration does not apply
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.