Red Hat Bugzilla – Bug 30164
lesspipe.sh doesn't work on log files
Last modified: 2007-04-18 12:31:51 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.14-5.0smp i686)
lesspipe.sh tries to open logfiles as man pages (their names are of the
form *.gz.n), and hence fails.
Steps to Reproduce:
1. less /var/log/messages.1.gz (with appropriate setting of LESSOPEN)
Actual Results: I got the "may be binary" prompt
The fix is to add an else clause to the *.?.gz and *.?.bz2 clauses of
gunzip [or bunzip2] -c "$1"
(unless perhaps this causes problems with some other files I haven't
this is already fixed in the rawhide package. ->Bugzilla #25324