From owner-freebsd-questions@FreeBSD.ORG Sat Sep 17 15:30:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4837416A41F for ; Sat, 17 Sep 2005 15:30:16 +0000 (GMT) (envelope-from joel@auscert.org.au) Received: from titania.auscert.org.au (gw.auscert.org.au [203.5.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0A2043D45 for ; Sat, 17 Sep 2005 15:30:15 +0000 (GMT) (envelope-from joel@auscert.org.au) Received: from app.auscert.org.au (app [10.0.1.192]) by titania.auscert.org.au (8.12.10/8.12.10) with ESMTP id j8HFTRBV043594; Sun, 18 Sep 2005 01:29:27 +1000 (EST) Received: from app.auscert.org.au (localhost.auscert.org.au [127.0.0.1]) by app.auscert.org.au (8.13.1/8.13.1) with ESMTP id j8HFUEdw078985; Sun, 18 Sep 2005 01:30:14 +1000 (EST) (envelope-from joel@app.auscert.org.au) Message-Id: <200509171530.j8HFUEdw078985@app.auscert.org.au> To: freebsd-questions@freebsd.org In-Reply-To: Your message of "Sat, 17 Sep 2005 07:17:56 MST." <8j4q8jdbhn.q8j@mail.opusnet.com> Date: Sun, 18 Sep 2005 01:30:14 +1000 From: Joel Hatton Cc: "Gary W. Swearingen" Subject: Re: Environment setting for make X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 15:30:16 -0000 > Joel Hatton writes: > > > # E.g. use `env MAKEOBJDIRPREFIX=/somewhere/obj make' > > > > However, and at this risk of exposing my inexperience and just plain old > > sounding foolish, how does this method of setting MAKEOBJDIRPREFIX differ > > from: > > > > setenv MAKEOBJDIRPREFIX /somewhere/obj > > It's effect is only seen by "make", instead of all subsequent > commands. It also works in a Bourne shell where the Bourne equivalent > of the second method is: MAKEOBJDIRPREFIXj=/somewhere/obj make Thanks, I think I understand. I'm a little confused about the Bourne shell, however. Do you mean that (1) 'MAKEOBJDIRPREFIX=/somewhere/obj make' is equivalent to (2) 'setenv MAKEOBJDIRPREFIX /somewhere/obj' or (3) 'env MAKEOBJDIRPREFIX=/somewhere/obj make'? Can (1) be substituted for (3)? >From my trials, (1) and (2) aren't similar as MAKEOBJDIRPREFIX remains unset in the shell after make exits for (1). In csh (2) has the same effect as the Bourne 'export MAKEOBJDIRPREFIX=/somewhere/obj' Sorry if I'm this sounds obtuse, and I'm off to dig out my shell book :) cheers, -- Joel Hatton -- Security Analyst | Hotline: +61 7 3365 4417 AusCERT - Australia's national CERT | Fax: +61 7 3365 7031 The University of Queensland | WWW: www.auscert.org.au Qld 4072 Australia | Email: auscert@auscert.org.au