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

Re: bug with less ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 08 July 2004 18:02, T. Howell-Cintron wrote:
> 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.

Except I can't repro his issue.  I think less binary uses file magic to see 
if the file is actually an rpm or not before passing it off to lesspipe.  
I can less text files with ".rpm" on the end of them all day long here:

[jkeating yoda jkeating]$ less -V
less 382

[jkeating yoda jkeating]$ rpm -q less
less-382-3

[jkeating yoda jkeating]$ echo "I am not an rpm" >> mynew-1.2.i386.rpm
[jkeating yoda jkeating]$ less mynew-1.2.i386.rpm
I am not an rpm
mynew-1.2.i386.rpm (END)


This is on FC2 x86_64.  I can do the same on 32bit FC2 (no testing packages 
on either)

- -- 
Jesse Keating RHCE	(http://geek.j2solutions.net)
Fedora Legacy Team	(http://www.fedoralegacy.org)
GPG Public Key		(http://geek.j2solutions.net/jkeating.j2solutions.pub)

Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA7rAY4v2HLvE71NURAlpfAJ4+hHGgcd9Qq9I1YgeZWtrIxMB1hACfceAA
GO7ERTxv2EhxigxVf0/iga0=
=xymP
-----END PGP SIGNATURE-----



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