[systemd-commits] 2 commits - NEWS src/shared
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Mar 7 12:28:56 PST 2013
NEWS | 4 ++++
src/shared/pager.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit a4c41bf3fa905c38e6e4d159c13eed890d53838b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Mar 7 21:28:09 2013 +0100
pager: always override LESS
https://bugzilla.redhat.com/show_bug.cgi?id=868383
Primary reason to do this is to ensure "-e" works as intended, and is
not ignored because the user set his own LESS variable.
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 4ffb530..e9aa022 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -86,9 +86,9 @@ int pager_open(bool jump_to_end) {
close_pipe(fd);
if (jump_to_end)
- setenv("LESS", "FRSXK+G", 0);
+ setenv("LESS", "FRSXK+G", 1);
else
- setenv("LESS", "FRSXK", 0);
+ setenv("LESS", "FRSXK", 1);
/* Make sure the pager goes away when the parent dies */
if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)
commit 43447fb72693d62363a1a271dacc70d400ed685b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Mar 7 21:28:05 2013 +0100
Update NEWS
diff --git a/NEWS b/NEWS
index 23caab9..00e0098 100644
--- a/NEWS
+++ b/NEWS
@@ -203,6 +203,10 @@ CHANGES WITH 198:
* journalctl gained a new "--reverse" (or -r) option to show
journal output in reverse order (i.e. newest line first).
+ * journalctl gained a new "--pager-end" (or -e) option to jump
+ to immediately jump to the end of the journal in the
+ pager. This is only supported in conjunction with "less".
+
* journalctl gained a new "--user-unit=" option, that works
similar to "--unit=" but filters for user units rather than
system units.
More information about the systemd-commits
mailing list