From owner-freebsd-rc@FreeBSD.ORG Sat Jul 31 15:33:12 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8306616A4CE; Sat, 31 Jul 2004 15:33:12 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB01F43D2F; Sat, 31 Jul 2004 15:33:11 +0000 (GMT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i6VFX37l006559; Sat, 31 Jul 2004 19:33:03 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i6VFX347006558; Sat, 31 Jul 2004 19:33:03 +0400 (MSD) (envelope-from ache) Date: Sat, 31 Jul 2004 19:33:03 +0400 From: Andrey Chernov To: Mike Makonnen Message-ID: <20040731153303.GA6471@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Mike Makonnen , Oliver Eikemeier , freebsd-rc@FreeBSD.ORG, current@FreeBSD.ORG References: <20040731104933.GA1312@rogue.acs-et.com> <03C7D82F-E2F5-11D8-9C56-00039312D914@fillmore-labs.com> <20040731145616.GA14576@rogue.acs-et.com> <20040731150542.GA5612@nagual.pp.ru> <20040731151944.GA23710@rogue.acs-et.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040731151944.GA23710@rogue.acs-et.com> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.26.0.10; VDF 6.26.0.53 (host: pobrecita.freebsd.ru) cc: freebsd-rc@FreeBSD.ORG cc: current@FreeBSD.ORG Subject: Re: RFC: Alternate patch to have true new-style rc.d scripts in ports (without touching localpkg) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 31 Jul 2004 15:33:12 -0000 On Sat, Jul 31, 2004 at 06:19:44PM +0300, Mike Makonnen wrote: > scripts that have a .sh, and those that don't. If you really want > your script to be sourced in the same shell, then you give it a > .sh extension. Otherwise, it will be sourced in a subshell. So, when It can make things even worse, what if someone rename his rc.subr-ed script.sh to script.sh.old ? It was common practice in the past to not execute anything without .sh at all. -- Andrey Chernov | http://ache.pp.ru/