From owner-freebsd-current Sun Mar 21 21:10: 2 1999 Delivered-To: freebsd-current@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id 2D11A14CFC for ; Sun, 21 Mar 1999 21:10:01 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) Received: from zippy.cdrom.com (localhost [127.0.0.1]) by zippy.cdrom.com (8.9.3/8.9.3) with ESMTP id VAA39607; Sun, 21 Mar 1999 21:09:23 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) To: John Baldwin Cc: freebsd-current@freebsd.org Subject: Re: /etc/rc.conf, take 46! In-reply-to: Your message of "Sun, 21 Mar 1999 22:12:03 EST." Date: Sun, 21 Mar 1999 21:09:23 -0800 Message-ID: <39605.922079363@zippy.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The problem with putting code in /etc/defaults/rc.conf is that simplistic parsers which read it as ``var = value # optional comment'' get very confused by for loops or function declarations or what have you. It also makes it more difficult to read in /etc/{*,.}rc.conf from an admin program, permute it in some way, and then write out a whole new config file - you have to detect the meta-information somehow and preserve it across saves in addition to just parsing variables (which is more straight-forward to say the least). - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message