- Fix regression in lesspipe.sh script (*.gz files etc.)
Resolves #615303 (comment #9)
This commit is contained in:
parent
44917d8329
commit
8a2da05adb
@ -1,7 +1,7 @@
|
||||
Summary: A text file browser similar to more, but better
|
||||
Name: less
|
||||
Version: 436
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
License: GPLv3+
|
||||
Group: Applications/Text
|
||||
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||
@ -71,6 +71,10 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%changelog
|
||||
* Mon Jan 03 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 436-8
|
||||
- Fix regression in lesspipe.sh script (*.gz files etc.)
|
||||
Resolves #615303 (comment #9)
|
||||
|
||||
* Thu Dec 23 2010 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 436-7
|
||||
- Fix for valid empty LESSOPEN pipe output
|
||||
Resolves: #579251, #615303
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user