From owner-cvs-src Thu Mar 6 10:58:37 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 C22FE37B401; Thu, 6 Mar 2003 10:58:33 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB9AC43F3F; Thu, 6 Mar 2003 10:58:29 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Sunbay) with ESMTP id h26IwOUC080701 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 6 Mar 2003 20:58:26 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Submit) id h26IwOnm080700; Thu, 6 Mar 2003 20:58:24 +0200 (EET) (envelope-from ru) Date: Thu, 6 Mar 2003 20:58:24 +0200 From: Ruslan Ermilov To: "David O'Brien" Cc: 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: <20030306185824.GE78034@sunbay.com> References: <200303060435.h264Zmkk039395@repoman.freebsd.org> <20030306154915.GE55489@sunbay.com> <20030306181137.GB40027@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a1QUDc0q7S3U7/Jg" Content-Disposition: inline In-Reply-To: <20030306181137.GB40027@dragon.nuxi.com> User-Agent: Mutt/1.5.3i 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 --a1QUDc0q7S3U7/Jg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > > >=20 > > > FreeBSD src repository > > >=20 > > > Modified files: > > > usr.bin/less Makefile=20 > > > Added files: > > > usr.bin/less lesspipe.sh=20 > > > 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. > > > =20 > > > Revision Changes Path > > > 1.8 +2 -0 src/usr.bin/less/Makefile > > > 1.1 +13 -0 src/usr.bin/less/lesspipe.sh (new) > > >=20 > > It is. > >=20 > > 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". >=20 > I realize that, and the answer is "no". I am following the documented > name in the man page. >=20 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=3D/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. In any case, it's not _stupid_, as the default behavior of SCRIPTSNAME of stripping extensions fits 99% of cases, and it was designed bearing this in mind. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --a1QUDc0q7S3U7/Jg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Z5pQUkv4P6juNwoRAvaCAJ916ADFPXoTbGb7E3tsfPvgRpRXbACdHufM hXhdjwcCjfQXUPjJK7EFzyA= =EKz5 -----END PGP SIGNATURE----- --a1QUDc0q7S3U7/Jg-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message