Red Hat Bugzilla – Bug 131041
lesspipe.sh doesn't work with normal (non-compressed etc. ) files
Last modified: 2007-11-30 17:07:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
/usr/bin/lesspipe.sh seems to be broken.
Running lesspipe on a normal file (that isn't compressed, or an
manfile etc) fails.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: command exits doing nothing on uncompressed file.
Expected Results: Should have been piped to the pager.
This seems to be the same bug as 88614 which was CLOSED CURRENTRELEASE
with Red Hat 9.
lesspipe.sh is a helper script which should only be called by less.
You should never run it directly. Instead set the environment
LESSOPEN to '|/usr/bin/lesspipe.sh %s', p.e. with the following
export LESSOPEN='|/usr/bin/lesspipe.sh %s'
Our default configuration already does this for you.
running 'less foo' then should do the right thing, i.e. uncompress
files, or pipe them through man, ...