From owner-freebsd-doc@FreeBSD.ORG Thu Nov 16 20:46:02 2006 Return-Path: X-Original-To: doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6233916A417; Thu, 16 Nov 2006 20:46:02 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4529F43D72; Thu, 16 Nov 2006 20:45:53 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id kAGKjpmQ050677; Thu, 16 Nov 2006 23:45:52 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id kAGKjpW8050676; Thu, 16 Nov 2006 23:45:51 +0300 (MSK) (envelope-from yar) Date: Thu, 16 Nov 2006 23:45:51 +0300 From: Yar Tikhiy To: Andrew Pantyukhin Message-ID: <20061116204551.GB49602@comp.chem.msu.su> References: <20061015173531.GB31717@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: doc@FreeBSD.org Subject: Re: New article X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 20:46:02 -0000 On Sun, Oct 29, 2006 at 08:18:50PM +0300, Andrew Pantyukhin wrote: > On 10/15/06, Yar Tikhiy wrote: > >Hi folks, > > Great article, thanks! Thank you! > How about > -eval "${rcvar}=\${${rcvar}:-'NO'}" > +eval : \${${rcvar}='NO'} > (a little more concise/readable; does not override > explicit null value, which might not be valid, but > should probably be respected all the same) The former expression agrees better with the current style of rc.subr and rc.d; in particular, null and unset values are treated the same. -- Yar