From: Heiko Schlittermann (HS12-RIPE) Date: Tue, 4 Jul 2017 11:33:08 +0000 (+0200) Subject: exigrep: use less --quite-if-one-screen --no-init X-Git-Tag: exim-4_90_RC1~121 X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=commitdiff_plain;h=503bf579576ca66c97b6b93a809cf6ca69ad04fd exigrep: use less --quite-if-one-screen --no-init --- diff --git a/src/src/exigrep.src b/src/src/exigrep.src index 45bdc2c80..851ca63bb 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -239,11 +239,12 @@ if (-t 1 and $use_pager) { foreach ($ENV{PAGER}//(), 'less', 'more') { + local $ENV{LESS} .= ' --no-init --quit-if-one-screen'; open(my $pager, '|-', $_) or next; select $pager; last; } -} + } # If file arguments are given, open each one and process according as it is # is compressed or not.