From owner-freebsd-current@FreeBSD.ORG Fri Nov 9 21:07:59 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 DC09716A419 for ; Fri, 9 Nov 2007 21:07:59 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 6EC2313C4A3 for ; Fri, 9 Nov 2007 21:07:59 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 18257 invoked from network); 9 Nov 2007 21:07:51 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Nov 2007 21:07:51 -0000 Message-ID: <4734CBEB.5000000@chuckr.org> Date: Fri, 09 Nov 2007 16:06:51 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4733AA45.6030905@chuckr.org> <200711091309.56463.qpadla@gmail.com> <86lk97k54b.fsf@ds4.des.no> <4734C440.4070100@chuckr.org> <868x57jfti.fsf@ds4.des.no> In-Reply-To: <868x57jfti.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 21:08:00 -0000 Dag-Erling Smørgrav wrote: > Chuck Robey writes: >> Dag-Erling Smørgrav wrote: >>> Nikolay Pavlov writes: >>>> There is already such a file there. You just need to proper set an >>>> environment: setenv LESSOPEN '|lesspipe.sh %s' >>> zless will do that for you. >> Now I'm getting a bit confused. I know you from long before, and I >> know you wouldn't make mistakes easily. MY zless here doesn't decode >> executables and libs, but there's no man page, and zless --help gives >> only the standard less help info, so I don;'t know what zless does >> that less didn't do before I changed out the lesspipe.sh on my local >> system. > > "that" refers to Nikolay's setenv trick. If you actually define > LESSOPEN in your environment, less will always use it, which may not be > what you want; instead, you can use less when you want to see the actual > file and zless when you want it "decoded". Oh, I see. Can I ask you to check, please, Dag, does your zless decode binaries? Mine didn't, and the lesspipe.sh that's in the sources (unless another one's hidden somewhere) doesn't allow it either, it only gave decoding of tar archives and stuff compressed with bzip/gzip. I'd really appreciate you doublechecking me on this. If you say it works to do the objdump decoding, I will believe you and keep to myself on this. Otherwise, I think this deserves going into our sources. > DES