Date: Sun, 6 Apr 2008 14:37:06 -0700 From: Doug Hardie <bc979@lafn.org> To: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: getenv in FreeBSD 7 Message-ID: <1794897B-7A36-412A-8849-87F10268EBAE@lafn.org>
next in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1794897B-7A36-412A-8849-87F10268EBAE>