<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:lekensteyn@gmail.com" title="Peter Wu <lekensteyn@gmail.com>"> <span class="fn">Peter Wu</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [REGRESSION] LESS cannot be overriden anymore - breaks scrolling"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62130">bug 62130</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>lekensteyn@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [REGRESSION] LESS cannot be overriden anymore - breaks scrolling"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62130#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [REGRESSION] LESS cannot be overriden anymore - breaks scrolling"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62130">bug 62130</a>
from <span class="vcard"><a class="email" href="mailto:lekensteyn@gmail.com" title="Peter Wu <lekensteyn@gmail.com>"> <span class="fn">Peter Wu</span></a>
</span></b>
<pre>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 "$@"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>