bug with less ?

Rui Miguel Seabra rms at 1407.org
Fri Jul 9 10:13:06 UTC 2004


On Thu, 2004-07-08 at 21:02 -0400, T. Howell-Cintron wrote:
> On 2004/07/08 23:32EDT Rui Miguel Seabra <rms at 1407.org> wrote:
> 
> > [slash at roque slash]$ less INSTALL.rpm
> > INSTALL.rpm: not an rpm package (or package manifest):
> > INSTALL.rpm (END)
> > [slash at roque slash]$ file INSTALL.rpm
> > INSTALL.rpm: ASCII English text
> > 
> > Yes, file is correct. User slash is a fresh account, with only the
> > system defaults.
> 
> Less is using /usr/bin/lesspipe.sh, which is hard-coded to view *.rpm
> files as the output of "rpm -qpivl --changelog" instead of the contents
> of the file itself.  You can unset LESSOPEN to revert to the expected
> behaviour.

Ah... or fix lesspipe.sh

Rui
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040709/4d63a02f/attachment.sig>


More information about the fedora-devel-list mailing list