From owner-freebsd-arch@FreeBSD.ORG Tue May 24 09:32:42 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B111E16A41C; Tue, 24 May 2005 09:32:42 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail20.syd.optusnet.com.au (mail20.syd.optusnet.com.au [211.29.132.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F0C443D48; Tue, 24 May 2005 09:32:41 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) by mail20.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j4O9WdGL004525 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 24 May 2005 19:32:40 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j4O9WdRx014307; Tue, 24 May 2005 19:32:39 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j4O9WcM2014306; Tue, 24 May 2005 19:32:39 +1000 (EST) (envelope-from pjeremy) Date: Tue, 24 May 2005 19:32:38 +1000 From: Peter Jeremy To: Harti Brandt Message-ID: <20050524093238.GC12640@cirb503493.alcatel.com.au> References: <20050523153118.C28521@beagle.kn.op.dlr.de> <42929680.3000309@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42929680.3000309@samsco.org> User-Agent: Mutt/1.4.2i Cc: arch@freebsd.org Subject: Re: Handling of shell builtins in make(1) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 09:32:42 -0000 On Mon, 2005-May-23 20:50:40 -0600, Scott Long wrote: >Harti Brandt wrote: >>The result of this is that for one and the same command you can get >>different behaviour whether you execute it via make(1) or via sh -c '...'. Not to mention the effect of IFS. Does POSIX provide any helpful suggestions on how to efficiently implement the behaviour they specify? >4. Separate /bin/sh into a front end and back end (libsh) and include >libsh into make. And this still won't help people who use .SHELL (or similar) to pick a different shell. 5) Add a "POSIX_ME_HARDER" option that just invokes the shell on every command. In the absence of this option, make(1) is free to directly exec the command if it's simple enough. 6) Add two new magic line markers (to supplement '@', '+' and '-') to require the line be executed using the shell or exec'd directly, superceding the buildin rules. -- Peter Jeremy