Re: Handling of shell builtins in make(1)
From: Stijn Hoop (stijn_at_win.tue.nl)
Date: 05/24/05
- Previous message: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- In reply to: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Next in thread: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Reply: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 May 2005 10:17:00 +0200 To: Harti Brandt <harti@freebsd.org>
On Tue, May 24, 2005 at 10:08:19AM +0200, Harti Brandt wrote:
> On Mon, 23 May 2005, Max Okumoto wrote:
>
> 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.
>
> 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.
>
> 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
-- "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)
- application/pgp-signature attachment: stored
- Previous message: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- In reply to: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Next in thread: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Reply: Harti Brandt: "Re: Handling of shell builtins in make(1)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Debian & FD Limit
... As long as there is not a real control software for it, ... login binary's
configuration. ... I want to do it the debian way: a config file. ... >> then
exit the shell, you find that the cd didn't affect your current ... (comp.os.linux.setup) - Re: Expanding environment variables
... >BM> any other shell metacharacters. ... >in latter is as complicated
as embedded tilde expansion. ... If the config file owner is the same as the person
running the ... users can edit the config file then they can use it as a way to hack him.
... (comp.unix.programmer) - Re: Problem with my Else statement
... and the shell would be ... if the .vnc config file is not located in
its default location ... >> Dim sStr As String, bFound As Boolean ...
(microsoft.public.excel.programming) - Re: best way to have a script read a config file?
... a one-line config file e.g. ... Iirc the 'while' construct spawns a new shell
and vars will not ... There are several solution to circumvent this using bash:
... (comp.unix.shell)