From owner-freebsd-rc@FreeBSD.ORG Sun Nov 26 12:19:11 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6E7016A407; Sun, 26 Nov 2006 12:19:11 +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 DC1D843D53; Sun, 26 Nov 2006 12:18:16 +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 kAQCJ7E7062247; Sun, 26 Nov 2006 15:19:08 +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 kAQCJ71a062246; Sun, 26 Nov 2006 15:19:07 +0300 (MSK) (envelope-from yar) Date: Sun, 26 Nov 2006 15:19:07 +0300 From: Yar Tikhiy To: Florent Thoumie Message-ID: <20061126121907.GC60959@comp.chem.msu.su> References: <1161268403.89897.1.camel@mayday.esat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1161268403.89897.1.camel@mayday.esat.net> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org Subject: Re: rcvar function in rc.subr X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 12:19:11 -0000 On Thu, Oct 19, 2006 at 03:33:23PM +0100, Florent Thoumie wrote: > Does anybody have a clue why /etc/rc.d/foo rcvar prints a leading '$' > before the variable name? Doesn't make much sense with /bin/sh. Sorry for the late reply. According to the CVS history, the code was just imported from NetBSD. Perhaps it's too late to change it as people are likely to have workarounds for it already. Of course, $foo_enable=YES looks ugly and has a different meaning in sh(1). -- Yar