X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=src%2Fsrc%2Fexigrep.src;h=851ca63bba57750e0d05e928f1794c1e0d83f507;hp=45bdc2c80cffe3bafc2f2cfa08773fc37b4e4b8a;hb=503bf579576ca66c97b6b93a809cf6ca69ad04fd;hpb=4226691b79845d9b41041e2f64a3a241dcb99f4d 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.