From owner-freebsd-current@FreeBSD.ORG Tue Nov 13 18:14:17 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 1DFA916A421 for ; Tue, 13 Nov 2007 18:14:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id B8DC313C480 for ; Tue, 13 Nov 2007 18:14:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 219092854-1834499 for multiple; Tue, 13 Nov 2007 11:46:38 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id lADGjfQB060464; Tue, 13 Nov 2007 11:45:41 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 12 Nov 2007 17:51:36 -0500 User-Agent: KMail/1.9.6 References: <4733AA45.6030905@chuckr.org> <4734C440.4070100@chuckr.org> <868x57jfti.fsf@ds4.des.no> In-Reply-To: <868x57jfti.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200711121751.37051.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 13 Nov 2007 11:45:42 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/4764/Tue Nov 13 07:43:47 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-3.8 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00, DATE_IN_PAST_12_24 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= , Chuck Robey 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: Tue, 13 Nov 2007 18:14:17 -0000 On Friday 09 November 2007 03:59:21 pm Dag-Erling Sm=C3=B8rgrav wrote: > Chuck Robey writes: > > Dag-Erling Sm=C3=B8rgrav 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. >=20 > "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". less -L =2D-=20 John Baldwin