Date: Sun, 26 Nov 2006 21:36:29 +0000 From: Florent Thoumie <flz@FreeBSD.org> To: Alexander Botero-Lowry <alexbl@freebsd.org> Cc: freebsd-rc@freebsd.org Subject: Re: rcvar function in rc.subr Message-ID: <456A08DD.2080205@FreeBSD.org> In-Reply-To: <200611262125.kAQLPFHS029942@Laptop.mine.box> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?456A08DD.2080205>