From owner-freebsd-questions Fri Jan 8 01:49:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA00316 for freebsd-questions-outgoing; Fri, 8 Jan 1999 01:49:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from guru.phone.net (guru.phone.net [209.157.82.120]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA00310 for ; Fri, 8 Jan 1999 01:49:13 -0800 (PST) (envelope-from mwm@phone.net) Received: (qmail 10997 invoked by uid 100); 8 Jan 1999 09:48:37 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 8 Jan 1999 09:48:37 -0000 Date: Fri, 8 Jan 1999 01:48:37 -0800 (PST) From: Mike Meyer To: Alan Bawden cc: freebsd-questions@FreeBSD.ORG Subject: Re: messing with /etc/rc.conf In-Reply-To: <8Jan1999.042549.Alan@LCS.MIT.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 8 Jan 1999, Alan Bawden wrote: > Date: Fri, 8 Jan 1999 04:41:34 -0500 (EST) > From: Alan Bawden > To: freebsd-questions@FreeBSD.ORG > Subject: messing with /etc/rc.conf > > There is a comment at the front of /etc/rc.conf that says: > > # All arguments must be in double or single quotes. > > It's not clear exactly what the restriction here is, but I recently learned > that if rc.conf contains the following: > > ntpdate_flags="-bs $(awk '$1 == "server" || $1 == "peer" {print $2}' /etc/ntp.conf)" > > something will occasionally re-write this to read: > > ntpdate_flags="-bs $(awk '$1 == " > > So I have two questions: > > 1. What is it that makes this change. And what exactly are the rules it > applies when parsing/rewriting the file? > > 2. If I move the setting of ntpdate_flags into /etc/rc.conf.local, will > whatever this thing is leave it alone there? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message