Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2008 13:33:15 +1000
From:      Mark Andrews <Mark_Andrews@isc.org>
Cc:        freebsd-stable@freebsd.org, Dave Uhring <duhring@charter.net>
Subject:   Re: Buildworld Fails RELENG_7 
Message-ID:  <200805200333.m4K3XF72030784@drugs.dv.isc.org>
In-Reply-To: Your message of "Tue, 20 May 2008 13:24:58 %2B1000." <200805200324.m4K3Ow5J030607@drugs.dv.isc.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> > On Tue, May 20, 2008 at 11:58:03AM +1000, Mark Andrews wrote:
> > > 
> > > > # export CFLAGS=""
> > > 
> > > 	This does NOT remove CFLAGS from the environment.
> > 
> > It does when you shell is bash.
> 
> 	bash is broken.  Empty environment variables have meaning.
> 	
> 	Mark

	And when tested does behave the way you describe.

	Mark

drugs:9.5.x 13:30 {4371} % bash
[marka@drugs ~/cvs/9.5.x]$ printenv | grep FOO
[marka@drugs ~/cvs/9.5.x]$ FOO=ll
[marka@drugs ~/cvs/9.5.x]$ export FOO
[marka@drugs ~/cvs/9.5.x]$ printenv | grep FOO
FOO=ll
[marka@drugs ~/cvs/9.5.x]$ FOO=""
[marka@drugs ~/cvs/9.5.x]$ export FOO
[marka@drugs ~/cvs/9.5.x]$ printenv | grep FOO
FOO=
[marka@drugs ~/cvs/9.5.x]$ env -i PATH=$PATH printenv | grep FOO
[marka@drugs ~/cvs/9.5.x]$ 

> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews@isc.org
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews@isc.org



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