X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=ab41566577167f3fe9997328197e831abd1ef496;hb=abebb5af9a7f5da77425aab1ecadd9bfcad53009;hp=08c7fabb7aca8a6a56d89248624d976b9da62415;hpb=23b2a3300c11535022f3f54b4e0bd37153c129ba;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index 08c7fabb7..ab4156657 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -5572,7 +5572,7 @@ static void pager_open(void) { if (!on_tty() || arg_no_pager) return; - if ((pager = getenv("PAGER"))) + if ((pager = getenv("SYSTEMD_PAGER")) || (pager = getenv("PAGER"))) if (!*pager || streq(pager, "cat")) return;