[systemd-bugs] [Bug 62130] [REGRESSION] LESS cannot be overriden anymore - breaks scrolling

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 16 01:34:45 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62130

Peter Wu <lekensteyn at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lekensteyn at gmail.com

--- Comment #2 from Peter Wu <lekensteyn at gmail.com> ---
Yeah, I eventually figured that out, but `LESS= SYSTEMD_PAGER=less\ -FRSM
journalctl` still does not work because `$LESS` is set unconditionally.

Therefore, I am using this wrapper:

# ~/.bashrc
export SYSTEMD_PAGER=${SYSTEMD_PAGER:-$HOME/bin/less-systemd}

#!/bin/sh
# ~/bin/less-systemd
# systemd uses: FRSXMK
# F --quit-if-one-screen
# R --RAW-CONTROL-CHARS
# S --chop-long-lines
# X --no-init
# M --LONG-PROMPT
# K --quit-on-intr
export LESS=FRSM
exec -- less "$@"

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130716/a6d94b01/attachment-0001.html>


More information about the systemd-bugs mailing list