From owner-freebsd-current@FreeBSD.ORG Fri Nov 9 20:28:38 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99C8316A418 for ; Fri, 9 Nov 2007 20:28:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9321313C4B9 for ; Fri, 9 Nov 2007 20:28:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 8152 invoked from network); 9 Nov 2007 20:28:33 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Nov 2007 20:28:33 -0000 Message-ID: <4734C2B4.6000307@chuckr.org> Date: Fri, 09 Nov 2007 15:27:32 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: qpadla@gmail.com References: <4733AA45.6030905@chuckr.org> <200711091309.56463.qpadla@gmail.com> In-Reply-To: <200711091309.56463.qpadla@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: a better lesskey helper X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 20:28:38 -0000 Nikolay Pavlov wrote: > On Friday 09 November 2007 02:31:01 Chuck Robey wrote: >> Well, I've taken a rather lengthy vacation from FreeBSD, trolling around >> Linux, so I could try to see if I was right in my presonal prejudice of >> FreeBSD being better. While I did prove myself right there, I did >> happen to find a few pearls (no, NOT perls!) of wisdom out amongst the >> Linux-folks. One of those pearls that I really do think we could stand >> to bring aboard is a file "/usr/bin/lesspipe.sh" > > Hello Chuck. > There is already such a file there. You just need to proper set an > environment: setenv LESSOPEN '|lesspipe.sh %s' > Also you can find a copy of such file from Debian distribution in > attachment. > the one I saw, after my buildworld, only performed automatic decompression of archives like *.tar.gz and *.tar.bz2 things, it did not do automatic objdump info runs on libraries and executeables. Yours does this? Confirm that for me by doing a "less /usr/bin/vi" and if less comes back with a "Binary file, are your sure?" then I'm right, but if it comes back with all the elf info, and then a listing of symbols, then I guess I would need to see why my own system did not do that. I should not need that setenv, because it should have been in /etc/csh.cshrc so it works automatically. Maybe, if you're telling me that it does it, then I needed merely to fix that. It's possible, I could have assumed that since it wasn't in the /etc/csh.cshrc, it didn't exist. I guess I need to see that. OK, I just checked my sources, in /usr/src/usr.bin/less/lesspipe.sh. Unless another file somewhere overwrites it, I'm right here. Could you please check yourself on your system?