bug with less ?

T. Howell-Cintron thc at frognet.net
Fri Jul 9 01:02:08 UTC 2004


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.

	- Tom





More information about the devel mailing list