From owner-cvs-src Fri Mar 7 5: 3:35 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1375137B405; Fri, 7 Mar 2003 05:03:31 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7BFF43F85; Fri, 7 Mar 2003 05:03:27 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h27D3P907959; Fri, 7 Mar 2003 10:03:25 -0300 Message-ID: <3E68989D.40005@tcoip.com.br> Date: Fri, 07 Mar 2003 10:03:25 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030214 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Ruslan Ermilov Cc: "David O'Brien" , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/less Makefile lesspipe.sh References: <200303060435.h264Zmkk039395@repoman.freebsd.org> <20030306154915.GE55489@sunbay.com> <20030306181137.GB40027@dragon.nuxi.com> <20030306185824.GE78034@sunbay.com> In-Reply-To: <20030306185824.GE78034@sunbay.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov wrote: > On Thu, Mar 06, 2003 at 10:11:37AM -0800, David O'Brien wrote: > >>On Thu, Mar 06, 2003 at 05:49:15PM +0200, Ruslan Ermilov wrote: >> >>>On Wed, Mar 05, 2003 at 08:35:48PM -0800, David E. O'Brien wrote: >>> >>>>obrien 2003/03/05 20:35:48 PST >>>> >>>> FreeBSD src repository >>>> >>>> Modified files: >>>> usr.bin/less Makefile >>>> Added files: >>>> usr.bin/less lesspipe.sh >>>> Log: >>>> Add an embellished lesspipe.sh as described in the man page. >>>> P.S. it is stupid I have to define both SCRIPTS and SCRIPTSNAME. >>>> >>>> Revision Changes Path >>>> 1.8 +2 -0 src/usr.bin/less/Makefile >>>> 1.1 +13 -0 src/usr.bin/less/lesspipe.sh (new) >>>> >>> >>>It is. >>> >>>The usual practice is to strip extensions when installing scripts. >>>Here, I'd suggest that you follow this practice too, and install >>>this script as "lesspipe". >> >>I realize that, and the answer is "no". I am following the documented >>name in the man page. >> > > The "documented" name is an example only, it is not the default -- > one still needs to set the LESSOPEN environment variable. > > The example script from the manpage can't even handle the `-' as > the first character in the name. > > How do you expect people to know that we provide lesspipe.sh and > they should set to LESSOPEN=/usr/bin/lesspipe.sh to explore it? > The answer is to document this (hint: this can easily be done by > compile-time adding the FreeBSD-specific section to the otherwise > stock vendor file), where you can document the fact that FreeBSD > provides /usr/bin/lesspipe (without .sh) suitable for LESSOPEN. Actually, if we are going to install a lesspipe, I suggest we add LESSOPEN to login.conf. Otherwise, I really don't see much of a point. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Any small object that is accidentally dropped will hide under a larger object. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message