Date: Sun, 6 Apr 2008 15:02:44 -0700 From: Doug Hardie <bc979@lafn.org> To: Jeremy Chadwick <koitsu@freebsd.org> Cc: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: getenv in FreeBSD 7 Message-ID: <E7DB28B4-97B5-4B00-8A36-152392934F14@lafn.org> In-Reply-To: <20080406214524.GA72199@eos.sc1.parodius.com> References: <1794897B-7A36-412A-8849-87F10268EBAE@lafn.org> <20080406214524.GA72199@eos.sc1.parodius.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 6, 2008, at 14:45, Jeremy Chadwick wrote: > On Sun, Apr 06, 2008 at 02:37:06PM -0700, Doug Hardie wrote: >> Somewhere between FreeBSD 6.2 and 7.0 getenv has been changed to >> return a >> null if an environment variable is set but has no value. I don't >> find >> anything anywhere in the documentation/man pages on this. As a >> result, you >> cannot distinguish between a variable that is not set and one that >> is set >> to a value of "". Is this a bug or a feature change? > > I'd begin peeking here: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/getenv.c Did that prior to my original posting. I find nothing there on it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7DB28B4-97B5-4B00-8A36-152392934F14>