Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109419 - Lesspipe.sh misdetects messages.1.gz
Summary: Lesspipe.sh misdetects messages.1.gz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-15 23:46 UTC by ta2002
Modified: 2005-10-16 14:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Working lesspipe.sh from about 20050725 (lesspipe.sh,1.97 KB, text/plain)
2005-10-15 23:49 UTC, ta2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2005-10-15 23:46:10 UTC
After many months, this finally got fixed.
Two of my systems (with less emerged in late
July of this year) have a working lesspipe.sh.

Somebody decided to break it again, so it no
longer works correctly.

/usr/portage/sys-apps/less/files/lesspipe.sh

Reproducible: Always
Steps to Reproduce:
1. less /var/log/messages.1.gz
2. "/var/log/messages.1.gz" may be a binary file.  See it anyway?
3. binary garbage


Expected Results:  
See the uncompressed log file.
Comment 1 ta2002 2005-10-15 23:49:20 UTC
Created attachment 70778 [details]
Working lesspipe.sh from about 20050725
Comment 2 SpanKY gentoo-dev 2005-10-16 14:21:10 UTC
the problem is that messages.1.gz used to fall down into the manpage case and
would be shown as text ... but it would also catch something like libc.so.6.gz
and incorrectly display it as binary data

so any files which are matched as '*.[0-9].gz' and are not of file type 'troff'
are pretty much ignored
Comment 3 SpanKY gentoo-dev 2005-10-16 14:46:03 UTC
fixed in cvs