From owner-freebsd-doc@FreeBSD.ORG Thu Nov 16 20:59:15 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 348D616A500 for ; Thu, 16 Nov 2006 20:59:15 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F3F743D78 for ; Thu, 16 Nov 2006 20:59:07 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so507403uge for ; Thu, 16 Nov 2006 12:59:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=S9kdhmV2hwxgUTAQmi6tsghynPn9ZSYzAYPXxdNVGKbJJuLzVF1sevY2rTzK0efDHYpJLoVKUMOqg+VrkAfBIrAHRuq/b1mFJpgWxHp5XoJIKjeFVSCp8Wltt6zBBfaVsjqibcXxPWt2Fb7PSRpNu2uCnzVBFcIkpyiiUvqjJhQ= Received: by 10.78.201.10 with SMTP id y10mr1075070huf.1163710746529; Thu, 16 Nov 2006 12:59:06 -0800 (PST) Received: by 10.78.167.16 with HTTP; Thu, 16 Nov 2006 12:59:06 -0800 (PST) Message-ID: Date: Thu, 16 Nov 2006 23:59:06 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Yar Tikhiy" In-Reply-To: <20061116204551.GB49602@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061015173531.GB31717@comp.chem.msu.su> <20061116204551.GB49602@comp.chem.msu.su> X-Google-Sender-Auth: c6716aec56d250cd 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:59:15 -0000 On 11/16/06, Yar Tikhiy wrote: > 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. I understand that you personally may be authoritative enough to make such statements, but it's not a matter of style. If null values were overridden, quite a lot of things would break right away. Try to "grep -h ^: *" in prefix/etc/rc.d on a box with a lot of packages installed and you'll see that only one or two percent of null variables are overridden. Sorry if I misunderstand you completely. Thanks!