From owner-freebsd-rc@FreeBSD.ORG Sun Nov 26 21:47:11 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36A9516A494; Sun, 26 Nov 2006 21:47:10 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id E89A544308; Sun, 26 Nov 2006 21:36:23 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp3-g19.free.fr (Postfix) with ESMTP id E6F954A250; Sun, 26 Nov 2006 22:36:52 +0100 (CET) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 1B17A1178D; Sun, 26 Nov 2006 22:36:47 +0100 (CET) X-Virus-Scanned: amavisd-new at xbsd.org Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w4s0WuVm209P; Sun, 26 Nov 2006 22:36:40 +0100 (CET) Received: from [193.120.13.130] (cream.xbsd.org [193.120.13.130]) by smtp.xbsd.org (Postfix) with ESMTP id 487F5116FA; Sun, 26 Nov 2006 22:36:37 +0100 (CET) Message-ID: <456A08DD.2080205@FreeBSD.org> Date: Sun, 26 Nov 2006 21:36:29 +0000 From: Florent Thoumie User-Agent: Thunderbird 1.5.0.8 (X11/20061126) MIME-Version: 1.0 To: Alexander Botero-Lowry References: <1161268403.89897.1.camel@mayday.esat.net> <20061126121907.GC60959@comp.chem.msu.su> <4569A113.5080106@FreeBSD.org> <20061126181422.GA66009@comp.chem.msu.su> <200611262125.kAQLPFHS029942@Laptop.mine.box> In-Reply-To: <200611262125.kAQLPFHS029942@Laptop.mine.box> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig6A618E36C1F93959057379E8" Cc: freebsd-rc@freebsd.org Subject: Re: rcvar function in rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 21:47:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A618E36C1F93959057379E8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alexander Botero-Lowry wrote: >> On Sun, Nov 26, 2006 at 02:13:39PM +0000, Florent Thoumie wrote: >>> Yar Tikhiy wrote: >>>> On Thu, Oct 19, 2006 at 03:33:23PM +0100, Florent Thoumie wrote: >>>>> Does anybody have a clue why /etc/rc.d/foo rcvar prints a leading '= $' >>>>> before the variable name? Doesn't make much sense with /bin/sh. >>>> Sorry for the late reply. According to the CVS history, the code >>>> was just imported from NetBSD. Perhaps it's too late to change it >>>> as people are likely to have workarounds for it already. Of course,= >>>> $foo_enable=3DYES looks ugly and has a different meaning in sh(1). >>> Well, it may be worth fixing in HEAD even if we don't MFC the change.= >> Then just do it! Well, if no serious objections appear in a >> reasonable period of time. Personally, I'm happy with the change >> -- I'm just not enough unhappy with the current bogosity. :-) >> > Err, why is it a good idea to break compatability with NetBSD? >=20 > This means that tools written for rc.d that use rcvar (chkconfig clone = for > example) have to have behavior written for both NetBSD and FreeBSD inst= ead=20 > of just having consistent behavior.=20 Not sure what you're thinking about. But if it's wrong, it must be fixed. If this chkconfig clone uses rcvar command output redirected to rc.conf, it's likely to do 's/^\$//' and it won't break anything. Would you care to elaborate a bit more? --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --------------enig6A618E36C1F93959057379E8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFagjdMxEkbVFH3PQRCrieAJ41+0svaemL2FG69FLDxkgePagxQQCeINx0 ql+zs2zD/SYY6La0VJviC3Y= =KGog -----END PGP SIGNATURE----- --------------enig6A618E36C1F93959057379E8--