From owner-freebsd-hackers Thu Jan 2 19:11:47 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 A7BF137B401; Thu, 2 Jan 2003 19:11:46 -0800 (PST) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD22C43EC5; Thu, 2 Jan 2003 19:11:45 -0800 (PST) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id A7740A804; Fri, 3 Jan 2003 14:11:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 99A365430; Fri, 3 Jan 2003 14:11:40 +1100 (EST) Date: Fri, 3 Jan 2003 14:11:40 +1100 (EST) From: Andrew To: Terry Lambert Cc: Miguel Mendez , , , , Subject: key=value in rc.conf (was Re: Reading rc.conf from C programs?) In-Reply-To: <3E14B7E8.A1159384@mindspring.com> Message-ID: <20030103131453.K69183-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thu, 2 Jan 2003, Terry Lambert 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? Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message