From: Heiko Schlittermann (HS12-RIPE) Date: Wed, 1 Nov 2017 21:38:43 +0000 (+0100) Subject: exigrep: we need to run with perl 5.8.x X-Git-Tag: exim-4_90_RC2~18 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b8d96756d873dab9685128f491399c535b652abe;p=exim.git exigrep: we need to run with perl 5.8.x The defined-or operator '//' does not exist yet. --- diff --git a/src/src/exigrep.src b/src/src/exigrep.src index 9e5c7d8b7..5db01fe08 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -244,7 +244,8 @@ $pattern = quotemeta $pattern if $literal; # Start a pager if output goes to a terminal if (-t 1 and $use_pager) { - foreach ($ENV{PAGER}//(), 'less', 'more') + # for perl >= v5.10.x: foreach ($ENV{PAGER}//(), 'less', 'more') + foreach (defined $ENV{PAGER} ? $ENV{PAGER} : (), 'less', 'more') { local $ENV{LESS} .= ' --no-init --quit-if-one-screen'; open(my $pager, '|-', $_) or next;