Date: Thu, 2 Jan 2003 16:01:07 -0500 From: Leo Bicknell <bicknell@ufp.org> To: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-ID: <20030102210106.GB83573@ussenterprise.ufp.org> In-Reply-To: <3E149EAF.9040100@acm.org> References: <3E1362FD.6070001@acm.org> <3E13CCF1.FA78AD5D@mindspring.com> <3E149EAF.9040100@acm.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
In a message written on Thu, Jan 02, 2003 at 12:18:55PM -0800, Tim Kientzle wrote:
> rc.conf is _not_ a list of variable=value
> pairs. It is a shell script that sets
> a number of shell variables. Nothing
> less than a full-fledged implementation
> of /bin/sh is gauranteed to work in all
> cases.
Might it be worth restricting rc.conf to be a (very small?) subset
of sh syntax so that it remains both a valid sh script and also
easier to parse in a program?
Clearly things like the end of /etc/defaults/rc.conf would have to
be handled differently, but that might be a good trade off to make
the file more easily parseable in many languages.
--
Leo Bicknell - bicknell@ufp.org - CCIE 3440
PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE+FKiSNh6mMG5yMTYRAtofAJ0RD/rVZomG5yuwtlWXPNc6PJPpTwCfQ7Wn
Gv/7b1YXr6oydwLgCJ2Ybxw=
=d13g
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102210106.GB83573>
