Bug 30164 - lesspipe.sh doesn't work on log files
Summary: lesspipe.sh doesn't work on log files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: less
Version: 7.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-01 11:57 UTC by Reuben Thomas
Modified: 2007-04-18 16:31 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-03-01 11:58:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Reuben Thomas 2001-03-01 11:57:57 UTC
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
lesspipe.sh:

else
  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 12:41:24 UTC
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.