Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2005 10:17:00 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Harti Brandt <harti@freebsd.org>
Cc:        arch@freebsd.org, Max Okumoto <okumoto@ucsd.edu>
Subject:   Re: Handling of shell builtins in make(1)
Message-ID:  <20050524081700.GF95023@pcwin002.win.tue.nl>
In-Reply-To: <20050524100205.W50725@beagle.kn.op.dlr.de>
References:  <20050523153118.C28521@beagle.kn.op.dlr.de> <di8y25a4dz.fsf@oec-server2.ucsd.edu> <20050524100205.W50725@beagle.kn.op.dlr.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050524081700.GF95023>