Date: Fri, 07 Mar 2003 10:03:25 -0300 From: "Daniel C. Sobral" <dcs@tcoip.com.br> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: "David O'Brien" <obrien@FreeBSD.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/less Makefile lesspipe.sh Message-ID: <3E68989D.40005@tcoip.com.br> In-Reply-To: <20030306185824.GE78034@sunbay.com> References: <200303060435.h264Zmkk039395@repoman.freebsd.org> <20030306154915.GE55489@sunbay.com> <20030306181137.GB40027@dragon.nuxi.com> <20030306185824.GE78034@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E68989D.40005>
