Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2005 11:00:32 -0700
From:      garys@opusnet.com (Gary W. Swearingen)
To:        Joel Hatton <joel@auscert.org.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Environment setting for make
Message-ID:  <wzirwzbmm7.rwz@mail.opusnet.com>
In-Reply-To: <200509171530.j8HFUEdw078985@app.auscert.org.au> (Joel Hatton's message of "Sun, 18 Sep 2005 01:30:14 %2B1000")
References:  <200509171530.j8HFUEdw078985@app.auscert.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Joel Hatton <joel@auscert.org.au> writes:

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

Yes, (1) == (3), except (3) works in any shell.

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

Correct. And same as 'MAKEOBJDIRPREFIX=/somewhere/obj; export MAKEOBJDIRPREFIX'



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