From owner-freebsd-hackers Fri Jan 3 0:20:49 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A240137B401 for ; Fri, 3 Jan 2003 00:20:48 -0800 (PST) Received: from infinitive.futureperfectcorporation.com (infinitive.futureperfectcorporation.com [196.25.137.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id F01A043EB2 for ; Fri, 3 Jan 2003 00:20:45 -0800 (PST) (envelope-from nbm@gerund.futureperfectcorporation.com) Received: (qmail 60770 invoked by uid 0); 3 Jan 2003 08:20:33 -0000 Received: from gerund.futureperfectcorporation.com (196.25.137.65) by infinitive.futureperfectcorporation.com with DES-CBC3-SHA encrypted SMTP; 3 Jan 2003 08:20:33 -0000 Received: (qmail 62328 invoked by uid 1001); 3 Jan 2003 08:24:22 -0000 Date: Fri, 3 Jan 2003 10:24:22 +0200 From: Neil Blakey-Milner To: Andrew Cc: Terry Lambert , Miguel Mendez , wgrim@siue.edu, phk@FreeBSD.ORG, kientzle@acm.org, freebsd-hackers@FreeBSD.ORG Subject: Re: key=value in rc.conf (was Re: Reading rc.conf from C programs?) Message-ID: <20030103082422.GA61889@mithrandr.moria.org> References: <3E14B7E8.A1159384@mindspring.com> <20030103131453.K69183-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030103131453.K69183-100000@starbug.ugh.net.au> User-Agent: Mutt/1.3.27i Organization: iTouch Technology and Architectural Services X-Operating-System: FreeBSD 4.3-RELEASE i386 X-URL: http://mithrandr.moria.org/nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri 2003-01-03 (14:11), Andrew wrote: > > They're in the CVS repository. Do a "cvs diff -c" before and after > > the code was added to the file, and you'll get my diffs. 8-). > > Perhaps the stuff at the bottom of defaults/rc.conf needs to be in a > seperate file (like read_rc_conf.sh) with another line or 2 to read in > defaults/rc.conf first. > > That way shell scripts needing to parse rc.conf call upon a tool to do it > in the same way as C programs are having to. From that point on rc.conf > can be key=value pairs only. > > Would this solve everyones problems or am I overlookign something? > with "unsubscribe freebsd-hackers" in the body of the message I've proposed this before (in January 2000), including code to replace all the 'sh' usages of it. Didn't write the tokeniser for C, though. http://docs.freebsd.org/cgi/getmsg.cgi?fetch=48338+0+archive/2000/freebsd-hackers/20001008.freebsd-hackers I got one "go ahead", but a "I don't see the point" from the then-pseudo-maintainer of the rc stuff. Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message