From 8e7f15f2e1beda4e5e05810927b79c2aba6efec0 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Apr 25 2016 04:53:44 +0000 Subject: LESSOPEN: use '||' syntax again Related: rhbz#1254837 Version: 481-5 --- diff --git a/less.csh b/less.csh index 1e6a485..d3c1f8e 100644 --- a/less.csh +++ b/less.csh @@ -9,6 +9,7 @@ if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then : else if ( -x /usr/bin/lesspipe.sh ) then - setenv LESSOPEN "|/usr/bin/lesspipe.sh %s" + # The '||' here is intentional, see rhbz#1254837. + setenv LESSOPEN "||/usr/bin/lesspipe.sh %s" endif endif diff --git a/less.sh b/less.sh index cdba043..189bbd2 100644 --- a/less.sh +++ b/less.sh @@ -3,5 +3,6 @@ # All less.*sh files should have the same semantics! if [ -z "$LESSOPEN" ] && [ -x /usr/bin/lesspipe.sh ]; then - export LESSOPEN="|/usr/bin/lesspipe.sh %s" + # The '||' here is intentional, see rhbz#1254837. + export LESSOPEN="||/usr/bin/lesspipe.sh %s" fi diff --git a/less.spec b/less.spec index 5274b73..d7dddf8 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ Summary: A text file browser similar to more, but better Name: less Version: 481 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ or BSD Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz @@ -65,6 +65,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d %{_mandir}/man1/* %changelog +* Mon Apr 25 2016 Pavel Raiskup - 481-5 +- again use the correct '||' syntax in LESSOPEN variable (rhbz#1254837) + * Wed Apr 20 2016 Pavel Raiskup - 481-4 - don't strictly require man-db or groff-base (rhbz#1278857)