[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: bug with less ?



On 2004/07/08 23:32EDT Rui Miguel Seabra <rms 1407 org> wrote:

> [slash roque slash]$ less INSTALL.rpm
> INSTALL.rpm: not an rpm package (or package manifest):
> INSTALL.rpm (END)
> [slash 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]