Re: linux/Makefile: CONFIG_SHELL and SHELL

Clifford Wolf (clifford@clifford.at)
Wed, 2 Sep 1998 07:00:50 +0200 (MEST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---1429998523-1729927913-904712450=:1689
Content-Type: TEXT/PLAIN; charset=US-ASCII

On 1 Sep 1998, Andreas Schwab wrote:

> Clifford Wolf <clifford@clifford.at> writes:
>
> |> I've just had a look at the GNU make info page (File: make.info, Node:
> |> Execution) and they say at this page that make executes all commands
> |> useing a subshell and that it uses /bin/sh as subshell if the $(SHELL)
> |> variable is not set.
> |>
> |> So it invokes a subshell anyway (regardless if $(SHELL) is set or not).
>
> No, it doesn't. If SHELL is unset or set to /bin/sh then make will parse
> the command by itself, unless it is complex (containing shell
> metacharacters) or uses shell builtin commands or if $IFS is non-standard.
> See job.c:construct_command_argv_internal. From the user's point of view
> this does not make any difference (except performance-wise), that's why
> it's not documented except in the sources.

I attached a patch which fixes the broken Makefiles. I don't know if we
use bash features - makeing the suggestion that /bin/sh is bash -
somewhere else in the kernel too.

- clifford

-- -- -- -- -- -- -- -- -- -- -- -- --
Clifford Wolf
magnet - Internet at Work IRC: efnet / clifford
Director of System Development http://www.clifford.at/
e-mail: c.wolf@magnet.at email: god@clifford.at

---1429998523-1729927913-904712450=:1689
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="linux-cleanmake.patch-119a"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.980902070050.1689G@babel.clifford.at>
Content-Description:

ZGlmZiAtcnVOIGxpbnV4L01ha2VmaWxlIGxpbnV4L01ha2VmaWxlDQotLS0g
bGludXgvTWFrZWZpbGUJRnJpIEF1ZyAyOCAxNToyNzozMyAxOTk4DQorKysg
bGludXgvTWFrZWZpbGUJV2VkIFNlcCAgMiAwNTo1OTozNyAxOTk4DQpAQCAt
MzUxLDkgKzM1MSw5IEBADQogDQogbXJwcm9wZXI6IGNsZ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FrZWZpbGUgbGludXgtY21mL2FyY2gvcHBjL01ha2VmaWxlDQotLS0g
bGludXgvYXJjaC9wcGMvTWFrZWZpbGUJV2VkIEF1ZyAgNSAwMTowNjozNiAx
OTk4DQorKysgbGludXgvYXJjaC9wcGMvTWFrZWZpbGUJV2VkIFNlcCAgMiAw
NjowMDo1MCAxOTk4DQpAQCAtOTYsMTAgKzk2LDEwIEBADQogCWxuIC1zIGFw
dXNfZGVmY29uZmlnIGFyY2gvcHBjL2RlZmNvbmZpZw0KIA0KIHRhZ3M6DQot
CWV0YWdzICovKi5jIGluY2x1ZGUve2FzbSxsaW51eH0vKi5oIGFyY2gvcHBj
L2tlcm5lbC8qLntjLGh9DQorCSQoQ09ORklHX1NIRUxMKSAtYyAnZXRhZ3Mg
Ki8qLmMgaW5jbHVkZS97YXNtLGxpbnV4fS8qLmggYXJjaC9wcGMva2VybmVs
Lyoue2MsaH0nDQogDQogYXJjaGNsZWFuOg0KLQlybSAtZiBhcmNoL3BwYy9r
ZXJuZWwve21rX2RlZnMscHBjX2RlZnMuaCxmaW5kX25hbWUsY2hlY2tzfQ0K
KwkkKENPTkZJR19TSEVMTCkgLWMgJ3JtIC1mIGFyY2gvcHBjL2tlcm5lbC97
bWtfZGVmcyxwcGNfZGVmcy5oLGZpbmRfbmFtZSxjaGVja3N9Jw0KIAlAJChN
QUtFQ09GRkJPT1QpIGNsZWFuDQogCUAkKE1BS0VCT09UKSBjbGVhbg0KIAlA
JChNQUtFQ0hSUEJPT1QpIGNsZWFuDQo=
---1429998523-1729927913-904712450=:1689--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html