From owner-freebsd-bugs Thu Jan 14 13:20:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09905 for freebsd-bugs-outgoing; Thu, 14 Jan 1999 13:20:37 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09897 for ; Thu, 14 Jan 1999 13:20:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA17088; Thu, 14 Jan 1999 13:20:01 -0800 (PST) Received: from oolong.camellia.org (oolong.camellia.org [206.119.96.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09197 for ; Thu, 14 Jan 1999 13:13:11 -0800 (PST) (envelope-from alan@oolong.camellia.org) Received: (from alan@localhost) by oolong.camellia.org (8.8.8/8.8.8+Erasmus) id QAA08360; Thu, 14 Jan 1999 16:12:01 -0500 (EST) (envelope-from alan) Message-Id: <14Jan1999.151125.Alan@LCS.MIT.EDU> Date: Thu, 14 Jan 1999 16:12:01 -0500 (EST) From: Alan Bawden Reply-To: Alan Bawden To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/9496: I suggest a better warning for /etc/rc.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 9496 >Category: misc >Synopsis: I suggest a better warning for /etc/rc.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 14 13:20:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Alan Bawden >Release: FreeBSD 2.2.6-RELEASE i386 >Organization: ITS Preservation Society >Environment: FreeBSD 2.2.6-RELEASE i386 >Description: The comment at the front of /etc/rc.conf does not explain that the file is actually read and re-written by /stand/sysinstall. >How-To-Repeat: Install FreeBSD, then decide to edit some customizations into /etc/rc.conf. As you start to edit, you will notice a comment that says: # All arguments must be in double or single quotes. Notice that, while this does give you a little twinge that you might not understand everything going on here, it does not actually deter you from writing all kinds of things that sysinstall won't be able to parse. >Fix: I would replace the comment as follows: # This file is sometimes parsed and re-written by # /stand/sysinstall. Because of this, all values must be written # surrounded by double quotes, and there is no way to specify a # value that contains a double quote. If this rules out # something that you want to do, put your hack in # /etc/rc.conf.local -- sysinstall doesn't look there. I removed the reference to single quotes, because my reading of sysinstall suggests that they don't actually work. I.e., you might be tempted to write foo='bar"baz' thinking you had found a way to specify a value containing a double quote, but the first time sysinstall processes this, it will write out: foo="bar"baz" Which will be mis-parsed by -both- sh and sysinstall. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message