From owner-freebsd-toolchain@FreeBSD.ORG Mon Jun 10 16:36:38 2013 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CCC99300; Mon, 10 Jun 2013 16:36:38 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0187.outbound.messaging.microsoft.com [213.199.154.187]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC7312AF; Mon, 10 Jun 2013 16:36:34 +0000 (UTC) Received: from mail123-db8-R.bigfish.com (10.174.8.248) by DB8EHSOBE013.bigfish.com (10.174.4.76) with Microsoft SMTP Server id 14.1.225.23; Mon, 10 Jun 2013 16:36:28 +0000 Received: from mail123-db8 (localhost [127.0.0.1]) by mail123-db8-R.bigfish.com (Postfix) with ESMTP id 38B353001B6; Mon, 10 Jun 2013 16:36:28 +0000 (UTC) X-Forefront-Antispam-Report: CIP:66.129.224.50; KIP:(null); UIP:(null); IPV:NLI; H:P-EMHUB02-HQ.jnpr.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: PS3(zzzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6h1082kzzz31h2a8h668h839hd25hf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b88h1d0ch1d2eh1d3fh1de2h1dfeh1dffh1e23h1155h) Received-SPF: softfail (mail123-db8: transitioning domain of juniper.net does not designate 66.129.224.50 as permitted sender) client-ip=66.129.224.50; envelope-from=sjg@juniper.net; helo=P-EMHUB02-HQ.jnpr.net ; -HQ.jnpr.net ; Received: from mail123-db8 (localhost.localdomain [127.0.0.1]) by mail123-db8 (MessageSwitch) id 1370882186179337_29364; Mon, 10 Jun 2013 16:36:26 +0000 (UTC) Received: from DB8EHSMHS012.bigfish.com (unknown [10.174.8.234]) by mail123-db8.bigfish.com (Postfix) with ESMTP id 295B93E0078; Mon, 10 Jun 2013 16:36:26 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net (66.129.224.50) by DB8EHSMHS012.bigfish.com (10.174.4.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 10 Jun 2013 16:36:23 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMHUB02-HQ.jnpr.net (172.24.192.33) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 10 Jun 2013 09:36:12 -0700 Received: from chaos.jnpr.net (chaos.jnpr.net [172.24.29.229]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id r5AGa9L10714; Mon, 10 Jun 2013 09:36:10 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos.jnpr.net (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 8F4D358097; Mon, 10 Jun 2013 09:36:09 -0700 (PDT) To: Chris Rees Subject: Re: bmake exports disallowed environment variables In-Reply-To: References: Comments: In-reply-to: Chris Rees message dated "Mon, 10 Jun 2013 12:10:36 +0100." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Mon, 10 Jun 2013 09:36:09 -0700 Message-ID: <20130610163609.8F4D358097@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain X-OriginatorOrg: juniper.net Cc: freebsd-toolchain@FreeBSD.org, tech-toolchain@netbsd.org, sjg@juniper.net X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 16:36:38 -0000 Hi Chris, >bmake appears to export ${.MAKE.LEVEL} into the environment, which sh >doesn't support, due to the leading '.'. Normally this is ignored, Yes, though env(1) does allow it. The leading '.' was deliberately chosen to reduce the risk of this being picked up from user environment. That is, if make finds .MAKE.LEVEL in its environment, then it "trusts" it - either an ancestor was make (rather than say gmake), or the user "must know what they are doing". In short, I'd like to leave it as is.