diff --git a/less.spec b/less.spec index fd7db28..5304bb5 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ Summary: A text file browser similar to more, but better Name: less Version: 436 -Release: 8%{?dist} +Release: 9%{?dist} License: GPLv3+ Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz @@ -72,6 +72,10 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d rm -rf $RPM_BUILD_ROOT %changelog +* Mon Jan 03 2011 Vojtech Vitek (V-Teq) - 436-9 +- Fix regression in lesspipe.sh script (*.gz files etc.) + Resolves #615303 (comment #9) + * Wed Dec 22 2010 Vojtech Vitek (V-Teq) - 436-8 - The new "--old-bot" option is not documented in the man page Resolves: #510724 diff --git a/lesspipe.sh b/lesspipe.sh index cfb710a..428309a 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -14,7 +14,7 @@ lesspipe() { *.gz) DECOMPRESSOR="gzip -dc" ;; *.bz2) DECOMPRESSOR="bzip2 -dc" ;; esac - if [ ! -z $DECOMPRESSOR ] ; then + if [ ! -z "$DECOMPRESSOR" ] ; then if $DECOMPRESSOR -- "$1" | file - | grep -q troff; then if echo "$1" | grep -q ^/; then #absolute path man -- "$1" | cat -s