Bug 30164 - lesspipe.sh doesn't work on log files
lesspipe.sh doesn't work on log files
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Karsten Hopp
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-03-01 06:57 EST by Reuben Thomas
Modified: 2007-04-18 12:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-01 06:58:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Reuben Thomas 2001-03-01 06:57:57 EST
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.

Reproducible: Always
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
thought of...)
Comment 1 Karsten Hopp 2001-03-01 07:41:24 EST
this is already fixed in the rawhide package.  ->Bugzilla #25324

Note You need to log in before you can comment on or make changes to this bug.