From owner-freebsd-stable@FreeBSD.ORG Fri Apr 29 14:24:36 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 232311065673 for ; Fri, 29 Apr 2011 14:24:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E9E918FC17 for ; Fri, 29 Apr 2011 14:24:35 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 84C9646B51; Fri, 29 Apr 2011 10:24:35 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EDBF68A01B; Fri, 29 Apr 2011 10:24:34 -0400 (EDT) From: John Baldwin To: Jeremy Chadwick Date: Fri, 29 Apr 2011 09:25:03 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <537A8F4F-A302-40F9-92DF-403388D99B4B@gsoft.com.au> <201104281727.04425.jhb@freebsd.org> <20110428215954.GA34030@icarus.home.lan> In-Reply-To: <20110428215954.GA34030@icarus.home.lan> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104290925.03607.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 29 Apr 2011 10:24:35 -0400 (EDT) Cc: freebsd-stable@freebsd.org Subject: Re: ZFS vs OSX Time Machine X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 14:24:36 -0000 On Thursday, April 28, 2011 5:59:54 pm Jeremy Chadwick wrote: > I've seen cases where entries in /boot/loader.conf throw parser errors > during loader(8) when quotes aren't used. The man page denotes that > quotes are required, which doesn't appear to be true? Possibly the > parser only throws errors if non-numeric/non-integer values (e.g. > strings) are specified without quotes. > > It's interesting that in the BUGS section of the man page the syntax > shown for hw.ata.ata_dma=0 also ""violates"" the ""required"" syntax. Yes, it's confusing. My gut instinct is that quotes are only required if the value contains whitespace. I've certainly used 'autoboot_delay=NO' without quotes before. I just did some tests and it looks like quotes are only required for values that contain whitespace, so foo=bar bar=42G baz="foo bar" are fine, but baz=foo bar will fail. This is similar to normal shell syntax for assigning to variables. -- John Baldwin