From owner-freebsd-arch@FreeBSD.ORG Tue May 24 08:17:05 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 5747816A41C; Tue, 24 May 2005 08:17:05 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pastinakel.tue.nl (pastinakel.tue.nl [131.155.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id E52D243D1D; Tue, 24 May 2005 08:17:04 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: by pastinakel.tue.nl (Postfix, from userid 40) id E687914BBDB; Tue, 24 May 2005 10:17:03 +0200 (CEST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by pastinakel.tue.nl (Postfix) with ESMTP id 9CABC14BC3F; Tue, 24 May 2005 10:17:00 +0200 (CEST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.13.3/8.13.1/Submit) id j4O8H0tQ027871; Tue, 24 May 2005 10:17:00 +0200 (CEST) (envelope-from stijn) Date: Tue, 24 May 2005 10:17:00 +0200 From: Stijn Hoop To: Harti Brandt Message-ID: <20050524081700.GF95023@pcwin002.win.tue.nl> References: <20050523153118.C28521@beagle.kn.op.dlr.de> <20050524100205.W50725@beagle.kn.op.dlr.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WplhKdTI2c8ulnbP" Content-Disposition: inline In-Reply-To: <20050524100205.W50725@beagle.kn.op.dlr.de> User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! X-Spam-DCC: : pastinakel.tue.nl 1074; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on pastinakel.tue.nl X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=6.3 tests=BAYES_00 autolearn=ham version=2.64 Cc: arch@freebsd.org, Max Okumoto 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 08:17:05 -0000 --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 24, 2005 at 10:08:19AM +0200, Harti Brandt wrote: > On Mon, 23 May 2005, Max Okumoto wrote: >=20 > MO>4. Extend .SHELL: to allow specifing a list of built-in. And then > MO> we should define them in bsd.sys.mk or some other config file. >=20 > We would need to add yet another config file for this because make > doesn't read anything if given the -r flag. It would end up having > no shell which would be wrong. Or, add a way to query /bin/sh for the list of builtins (sh --show-builtins) and use that in the absence of an explicit .SHELL. > MO>This will allow people to add keywords for their shells, and > MO>remove that stuff from the make source code. Hard coding it > MO>in the binary is wrong. >=20 > The initial shell (/bin/sh) must be in the binary because it must run with > -r. I see no sense to add another config file just for the purpose > of specifying the shell. What would that give you that you cannot do now? I think it's more that hardcoding a list of builtins is undesirable. --Stijn --=20 "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." -- Marcus Brigstocke (http://www.marcusbrigstocke.com/pacman.asp) --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCkuL8Y3r/tLQmfWcRAsSjAKCqPUQFSwSpvMtibQhpHYzQoZP4xgCfZwy5 v3bu21CQ8xEz317dhJBPdCw= =MB+i -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP--